mirror of
https://github.com/mirror/make.git
synced 2025-03-24 08:41:18 +08:00
Rearrange dllimport/dllexport declarations for MS-Windows.
gnumake.h (GMK_EXPORT) [_WIN32]: Move the dllexport declaration here from makeint.h. makeint.h (GMK_BUILDING_MAKE) [WINDOWS32]: Define before including gnumake.h.
This commit is contained in:
parent
a668c520b2
commit
f0529daced
@ -1,5 +1,11 @@
|
||||
2013-05-06 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* gnumake.h (GMK_EXPORT) [_WIN32]: Move the dllexport declaration
|
||||
here from makeint.h.
|
||||
|
||||
* makeint.h (GMK_BUILDING_MAKE) [WINDOWS32]: Define before
|
||||
including gnumake.h.
|
||||
|
||||
* doc/make.texi (Loaded Object Example): Add a note about building
|
||||
shared objects on MS-Windows.
|
||||
|
||||
|
@ -28,7 +28,9 @@ typedef struct
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
# ifndef GMK_EXPORT
|
||||
# ifdef GMK_BUILDING_MAKE
|
||||
# define GMK_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define GMK_EXPORT __declspec(dllimport)
|
||||
# endif
|
||||
#else
|
||||
|
@ -49,10 +49,10 @@ char *alloca ();
|
||||
|
||||
/* Include the externally-visible content.
|
||||
Be sure to use the local one, and not one installed on the system.
|
||||
Define GMK_EXPORT for proper selection of dllexport/dllimport declarations
|
||||
for MS-Windows. */
|
||||
Define GMK_BUILDING_MAKE for proper selection of dllexport/dllimport
|
||||
declarations for MS-Windows. */
|
||||
#ifdef WINDOWS32
|
||||
# define GMK_EXPORT __declspec(dllexport)
|
||||
# define GMK_BUILDING_MAKE
|
||||
#endif
|
||||
#include "gnumake.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user