wxhelper-new/inc/base_config.h

31 lines
613 B
C
Raw Permalink Normal View History

2024-06-16 13:17:24 +08:00
#ifndef BASE_BASE_CONFIG_H_
#define BASE_BASE_CONFIG_H_
// Lib/Dll switch
#if !defined(BASE_EXPORTS) && !defined(BASE_IMPORTS) && !defined(BASE_STATIC)
#define BASE_STATIC
#endif
#if defined(_MSC_VER)
#ifndef COMPILER_MSVC
#define COMPILER_MSVC 1
#endif
#if defined(BASE_IMPORTS)
#define BASE_API __declspec(dllimport)
#elif defined(BASE_EXPORTS)
#define BASE_API __declspec(dllexport)
#else
#define BASE_API
#endif
#elif defined(__GNUC__)
#define COMPILER_GCC
#define BASE_API
#else
#error "Unknown or unsupported compiler"
#endif
#endif