barrier/base/common.h
2001-11-19 00:33:36 +00:00

37 lines
544 B
C

#ifndef COMMON_H
#define COMMON_H
#if defined(__linux__)
#define CONFIG_PLATFORM_LINUX
#define CONFIG_PLATFORM_UNIX
#define CONFIG_TYPES_X11
#define CONFIG_PTHREADS
#elif defined(__sun__)
#define CONFIG_PLATFORM_SOLARIS
#define CONFIG_PLATFORM_UNIX
#define CONFIG_TYPES_X11
#define CONFIG_PTHREADS
#elif defined(_WIN32)
#define CONFIG_PLATFORM_WIN32
#if (_MSC_VER >= 1200)
#pragma warning(disable: 4786) // identifier truncated in debug info
#endif
#else
#error unsupported platform
#endif
#ifndef NULL
#define NULL 0
#endif
#endif