- change #warnings so that they are informative, instead of "case 1,2,3"
This commit is contained in:
parent
bd9d45574d
commit
c1e54f2fc4
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user