From d991fbe26c67c13887911ce9a67aa07fe0eb50cf Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez Date: Thu, 17 Jul 2008 21:31:42 +0000 Subject: [PATCH] ifdef is more clear than ifndef here. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@454 119443c7-1b9e-41f8-b6fc-b9c35fce742c --- upnp/inc/UpnpGlobal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upnp/inc/UpnpGlobal.h b/upnp/inc/UpnpGlobal.h index c07541b..8130e3a 100644 --- a/upnp/inc/UpnpGlobal.h +++ b/upnp/inc/UpnpGlobal.h @@ -24,7 +24,9 @@ /* * EXPORT_SPEC */ - #ifndef UPNP_STATIC_LIB + #ifdef UPNP_STATIC_LIB + #define EXPORT_SPEC + #else /* UPNP_STATIC_LIB */ #ifdef LIBUPNP_EXPORTS /*! set up declspec for dll export to make functions * visible to library users */ @@ -32,8 +34,6 @@ #else /* LIBUPNP_EXPORTS */ #define EXPORT_SPEC __declspec(dllimport) #endif /* LIBUPNP_EXPORTS */ - #else /* UPNP_STATIC_LIB */ - #define EXPORT_SPEC #endif /* UPNP_STATIC_LIB */