- change #warnings so that they are informative, instead of "case 1,2,3"

This commit is contained in:
Bryce Denney 2002-10-11 16:25:49 +00:00
parent bd9d45574d
commit c1e54f2fc4
5 changed files with 15 additions and 15 deletions

View File

@ -1,16 +1,16 @@
#if defined(WIN32) || defined(__CYGWIN__)
# ifdef MODULE1_DLL_EXPORT
# ifdef DLL_EXPORT
# warning case 1
# warning I will export DLL symbols for MODULE1
# define MODULE1API(type) __declspec(dllexport) type
# endif
# else
# warning case 2
# warning I will import DLL symbols for MODULE1
# define MODULE1API(type) __declspec(dllimport) type
# endif
#endif
#ifndef MODULE1API
# warning case 3
# warning No DLL import/export is needed
# define MODULE1API(type) type
#endif

View File

@ -1,16 +1,16 @@
#if defined(WIN32) || defined(__CYGWIN__)
# ifdef MODULE1_DLL_EXPORT
# ifdef DLL_EXPORT
# warning case 1
# warning I will export DLL symbols for MODULE1
# define MODULE1API(type) __declspec(dllexport) type
# endif
# else
# warning case 2
# warning I will import DLL symbols for MODULE1
# define MODULE1API(type) __declspec(dllimport) type
# endif
#endif
#ifndef MODULE1API
# warning case 3
# warning No DLL import/export is needed
# define MODULE1API(type) type
#endif

View File

@ -1,16 +1,16 @@
#if defined(WIN32) || defined(__CYGWIN__)
# ifdef MODULE2_DLL_EXPORT
# ifdef DLL_EXPORT
# warning case 1
# warning I will export DLL symbols for MODULE2
# define MODULE2API(type) __declspec(dllexport) type
# endif
# else
# warning case 2
# warning I will import DLL symbols for MODULE2
# define MODULE2API(type) __declspec(dllimport) type
# endif
#endif
#ifndef MODULE2API
# warning case 3
# warning No DLL import/export is needed
# define MODULE2API(type) type
#endif

View File

@ -1,16 +1,16 @@
#if defined(WIN32) || defined(__CYGWIN__)
# ifdef MODULE1_DLL_EXPORT
# ifdef DLL_EXPORT
# warning case 1
# warning I will export DLL symbols for MODULE1
# define MODULE1API(type) __declspec(dllexport) type
# endif
# else
# warning case 2
# warning I will import DLL symbols for MODULE1
# define MODULE1API(type) __declspec(dllimport) type
# endif
#endif
#ifndef MODULE1API
# warning case 3
# warning No DLL import/export is needed
# define MODULE1API(type) type
#endif

View File

@ -1,16 +1,16 @@
#if defined(WIN32) || defined(__CYGWIN__)
# ifdef MODULE2_DLL_EXPORT
# ifdef DLL_EXPORT
# warning case 1
# warning I will export DLL symbols for MODULE2
# define MODULE2API(type) __declspec(dllexport) type
# endif
# else
# warning case 2
# warning I will import DLL symbols for MODULE2
# define MODULE2API(type) __declspec(dllimport) type
# endif
#endif
#ifndef MODULE2API
# warning case 3
# warning No DLL import/export is needed
# define MODULE2API(type) type
#endif