Skip to content
Snippets Groups Projects
Commit 6d1d9e1e authored by rswindell's avatar rswindell
Browse files

Only declares functions as import/export if SMBDLL is defined.

Function declared as export if SMB_EXPORTS is defined, import otherwise.
parent 034e8915
No related branches found
No related tags found
No related merge requests found
...@@ -53,10 +53,14 @@ ...@@ -53,10 +53,14 @@
#else #else
#define SMBCALL #define SMBCALL
#endif #endif
#ifdef SMBDLL #ifdef SMBDLL /* SMBLIB contained in DLL */
#define SMBEXPORT __declspec( dllexport ) #ifdef SMB_EXPORTS
#else #define SMBEXPORT __declspec( dllexport )
#define SMBEXPORT __declspec( dllimport ) #else
#define SMBEXPORT __declspec( dllimport )
#endif
#else /* self-contained executable */
#define SMBEXPORT
#endif #endif
#elif defined __unix__ #elif defined __unix__
#define SMBCALL #define SMBCALL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment