diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-07-14 08:13:57 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-07-14 13:08:36 (GMT) |
commit | 003381f417caaae9918cd81fa53bcc0547caa4c9 (patch) | |
tree | c0571987e87a115e5a7ad03eca55db972f6686c6 /Swiften/Base/API.h | |
parent | 075c1f08245055e0060df2695e75bba54e697d36 (diff) | |
download | swift-contrib-003381f417caaae9918cd81fa53bcc0547caa4c9.zip swift-contrib-003381f417caaae9918cd81fa53bcc0547caa4c9.tar.bz2 |
Initial DLL support for Swiften.
All applications succesfully link against Swiften.dll.
Diffstat (limited to 'Swiften/Base/API.h')
-rw-r--r-- | Swiften/Base/API.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Swiften/Base/API.h b/Swiften/Base/API.h new file mode 100644 index 0000000..8f19446 --- /dev/null +++ b/Swiften/Base/API.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2012 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <Swiften/Base/Platform.h> + +#ifdef SWIFTEN_STATIC +# define SWIFTEN_API +#else +# ifdef SWIFTEN_PLATFORM_WINDOWS +# ifdef SWIFTEN_BUILDING +# define SWIFTEN_API __declspec(dllexport) +# else +# define SWIFTEN_API __declspec(dllimport) +# endif +# else +# define SWIFTEN_API +# endif +#endif |