"Fossies" - the Fresh Open Source Software Archive

Member "libsigc++-3.0.0/MSVC_NMake/sigc++config.h" (5 Sep 2019, 1953 Bytes) of package /linux/misc/libsigc++-3.0.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "sigc++config.h": 2.99.13_vs_3.0.0.

    1 /* sigc++config.h.  Generated from sigc++config.h.in by configure.  */
    2 
    3 /* Define to omit deprecated API from the library. */
    4 /* #undef SIGCXX_DISABLE_DEPRECATED */
    5 
    6 /* Major version number of sigc++. */
    7 #define SIGCXX_MAJOR_VERSION 3
    8 
    9 /* Micro version number of sigc++. */
   10 #define SIGCXX_MICRO_VERSION 0
   11 
   12 /* Minor version number of sigc++. */
   13 #define SIGCXX_MINOR_VERSION 0
   14 
   15 /* Detect Win32 platform */
   16 #ifdef _WIN32
   17 # if defined(_MSC_VER)
   18 #  define SIGC_MSC 1
   19 #  define SIGC_WIN32 1
   20 #  define SIGC_DLL 1
   21 # elif defined(__CYGWIN__)
   22 #  define SIGC_CONFIGURE 1
   23 # elif defined(__MINGW32__)
   24 #  define SIGC_WIN32 1
   25 #  define SIGC_CONFIGURE 1
   26 # else
   27 #  error "libsigc++ config: Unknown win32 architecture (send me gcc --dumpspecs or equiv)"
   28 # endif
   29 #else /* !_WIN32 */
   30 # define SIGC_CONFIGURE 1
   31 #endif /* !_WIN32 */
   32 
   33 #ifdef SIGC_MSC
   34 /*
   35  * MS VC7 Warning 4251 says that the classes to any member objects in an
   36  * exported class must also be exported.  Some of the libsigc++
   37  * template classes contain std::list members.  MS KB article 168958 says
   38  * that it's not possible to export a std::list instantiation due to some
   39  * wacky class nesting issues, so our only options are to ignore the
   40  * warning or to modify libsigc++ to remove the std::list dependency.
   41  * AFAICT, the std::list members are used internally by the library code
   42  * and don't need to be used from the outside, and ignoring the warning
   43  * seems to have no adverse effects, so that seems like a good enough
   44  * solution for now.
   45  */
   46 # pragma warning(disable:4251)
   47 
   48 #if (_MSC_VER < 1900) && !defined (noexcept)
   49 #define _ALLOW_KEYWORD_MACROS 1
   50 #define noexcept _NOEXCEPT
   51 #endif
   52 
   53 #else /* SIGC_MSC */
   54 
   55 #endif /* !SIGC_MSC */
   56 
   57 #ifdef SIGC_DLL
   58 # if defined(SIGC_BUILD) && defined(_WINDLL)
   59 #  define SIGC_API __declspec(dllexport)
   60 # elif !defined(SIGC_BUILD)
   61 #  define SIGC_API __declspec(dllimport)
   62 # else
   63 #  define SIGC_API
   64 # endif
   65 #else /* !SIGC_DLL */
   66 # define SIGC_API
   67 #endif /* !SIGC_DLL */