summaryrefslogtreecommitdiff
path: root/woe32dll
diff options
context:
space:
mode:
authorStephen Kitt <skitt@debian.org>2016-05-27 10:11:04 +0200
committerManuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>2016-05-27 14:28:33 +0100
commit752fd7247bc223bcea35bd89cf56d1c08ead9ba6 (patch)
treeb4a428f847a963738faaf24c8eff070fdb03a3a5 /woe32dll
parent9f7d4fa477ff2a51d7c932b13d57ac22dc033105 (diff)
parenta9a31b1de5776a3b08a82101a4fa711294f0dd1d (diff)
Imported Debian patch 0.9.6+really0.9.3-0.1debian/0.9.6+really0.9.3-0.1
Diffstat (limited to 'woe32dll')
-rw-r--r--woe32dll/export.h24
-rw-r--r--woe32dll/unistring-exports.c6
2 files changed, 10 insertions, 20 deletions
diff --git a/woe32dll/export.h b/woe32dll/export.h
index b365924..6404832 100644
--- a/woe32dll/export.h
+++ b/woe32dll/export.h
@@ -1,18 +1,18 @@
/* Exporting symbols from Cygwin shared libraries.
- Copyright (C) 2006, 2011-2012 Free Software Foundation, Inc.
+ Copyright (C) 2006 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published by
+ it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Lesser General Public License for more details.
+ GNU General Public License for more details.
- You should have received a copy of the GNU Lesser General Public License
+ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* There are four ways to build shared libraries on Cygwin:
@@ -87,18 +87,14 @@
Note: --export-all-symbols is the default when no other symbol is explicitly
exported. This means, the use of an explicit export on the variables has
the effect of no longer exporting the functions! - until the option
- --export-all-symbols is used.
-
- See <http://www.haible.de/bruno/woe32dll.html> for more details. */
-
-#if defined __GNUC__ /* GCC compiler, GNU toolchain */
+ --export-all-symbols is used. */
/* IMP(x) is a symbol that contains the address of x. */
-# define IMP(x) _imp__##x
+#define IMP(x) _imp__##x
/* Ensure that the variable x is exported from the library, and that a
pseudo-variable IMP(x) is available. */
-# define VARIABLE(x) \
+#define VARIABLE(x) \
/* Export x without redefining x. This code was found by compiling a \
snippet: \
extern __declspec(dllexport) int x; int x = 42; */ \
@@ -108,9 +104,3 @@
/* Allocate a pseudo-variable IMP(x). */ \
extern int x; \
void * IMP(x) = &x;
-
-#else /* non-GNU compiler, non-GNU toolchain */
-
-# define VARIABLE(x) /* nothing */
-
-#endif
diff --git a/woe32dll/unistring-exports.c b/woe32dll/unistring-exports.c
index 29b25e8..a32ae61 100644
--- a/woe32dll/unistring-exports.c
+++ b/woe32dll/unistring-exports.c
@@ -3,16 +3,16 @@
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published by
+ it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Lesser General Public License for more details.
+ GNU General Public License for more details.
- You should have received a copy of the GNU Lesser General Public License
+ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "woe32dll/export.h"