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
Branches
Tags
No related merge requests found
......@@ -53,10 +53,14 @@
#else
#define SMBCALL
#endif
#ifdef SMBDLL
#define SMBEXPORT __declspec( dllexport )
#else
#define SMBEXPORT __declspec( dllimport )
#ifdef SMBDLL /* SMBLIB contained in DLL */
#ifdef SMB_EXPORTS
#define SMBEXPORT __declspec( dllexport )
#else
#define SMBEXPORT __declspec( dllimport )
#endif
#else /* self-contained executable */
#define SMBEXPORT
#endif
#elif defined __unix__
#define SMBCALL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment