export.hpp

Go to the documentation of this file.
00001 #ifndef s11n_net_S11N_EXPORT_HPP_INCLUDED
00002 #define s11n_net_S11N_EXPORT_HPP_INCLUDED
00003 /**********************************************************************
00004 This file defines some macros for "exporting" symbols when the code is
00005 compiled as a shared library (DLL). Windows platforms, and possibly
00006 others, need to be told exactly what symbols are to be exported.
00007 
00008 S11N_EXPORT_API should be used when declaring a class which needs to be
00009 visible from outside the DLL:
00010 
00011   class S11N_EXPORT_API my_class { ... };
00012 
00013 Free functions:
00014 
00015   S11N_EXPORT_API int my_func() { ... }
00016 
00017 
00018 **********************************************************************/
00019 
00020 #ifdef WIN32
00021 // #warning "Exporting Windows-style!"
00022 // #  ifdef S11N_EXPORTS
00023 #    define S11N_EXPORT_API __declspec(dllexport)
00024 // #  else
00025 // #    define S11N_EXPORT_API __declspec(dllimport)
00026 // #  endif
00027 #else
00028 #    define S11N_EXPORT_API
00029 #endif
00030 
00031 #endif // s11n_net_S11N_EXPORT_HPP_INCLUDED

Generated on Thu Feb 8 10:25:27 2007 for libs11n-1.2.5 by  doxygen 1.5.0