From 5f2b09982312c98863eb9a8dfe2c608b81f58259 Mon Sep 17 00:00:00 2001 From: "Manuel A. Fernandez Montecelo" Date: Thu, 26 May 2016 16:48:15 +0100 Subject: Imported Upstream version 0.9.6 --- woe32dll/export.h | 24 +++++++++++++++++------- woe32dll/unistring-exports.c | 6 +++--- 2 files changed, 20 insertions(+), 10 deletions(-) (limited to 'woe32dll') diff --git a/woe32dll/export.h b/woe32dll/export.h index 6404832..b365924 100644 --- a/woe32dll/export.h +++ b/woe32dll/export.h @@ -1,18 +1,18 @@ /* Exporting symbols from Cygwin shared libraries. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2011-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by + it under the terms of the GNU Lesser 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 General Public License for more details. + GNU Lesser General Public License for more details. - You should have received a copy of the GNU General Public License + You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* There are four ways to build shared libraries on Cygwin: @@ -87,14 +87,18 @@ 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. */ + --export-all-symbols is used. + + See for more details. */ + +#if defined __GNUC__ /* GCC compiler, GNU toolchain */ /* 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; */ \ @@ -104,3 +108,9 @@ /* 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 a32ae61..29b25e8 100644 --- a/woe32dll/unistring-exports.c +++ b/woe32dll/unistring-exports.c @@ -3,16 +3,16 @@ Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by + it under the terms of the GNU Lesser 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 General Public License for more details. + GNU Lesser General Public License for more details. - You should have received a copy of the GNU General Public License + You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include "woe32dll/export.h" -- cgit v1.2.3