libmoost
/home/mhx/git/github/libmoost/include/moost/pdl/platform.h
Go to the documentation of this file.
00001 /* vim:set ts=3 sw=3 sts=3 et: */
00028 #ifndef MOOST_PDL_PLATFORM_H__
00029 #define MOOST_PDL_PLATFORM_H__
00030 
00031 #if defined(WIN32) || defined(_WIN32)
00032 # define PDL_PLATFORM_WIN32 1
00033 # define PDL_DECL_EXPORT __declspec(dllexport)
00034 #elif defined(unix) || defined(__unix__)
00035 # define PDL_PLATFORM_POSIX 1
00036 # define PDL_DECL_EXPORT
00037 #else
00038 # include <boost/static_assert.hpp>
00039 BOOST_STATIC_ASSERT_MSG(false, "unknown platform");
00040 #endif
00041 
00042 #ifndef PDL_PLATFORM_WIN32
00043 # define PDL_PLATFORM_WIN32 0
00044 #endif
00045 
00046 #ifndef PDL_PLATFORM_POSIX
00047 # define PDL_PLATFORM_POSIX 0
00048 #endif
00049 
00050 #endif