#pragma once

#define LD31_VERSION_MAJOR @LD31_VERSION_MAJOR@
#define LD31_VERSION_MINOR @LD31_VERSION_MINOR@
#define LD31_VERSION_PATCH @LD31_VERSION_PATCH@
#define LD31_VERSION_TWEAK @LD31_VERSION_TWEAK@

#define LD31_VERSION "@LD31_VERSION@"

#if (@LD31_HAS_TAG@ == 1)
#  define LD31_GIT_DESCRIBE "@LD31_GIT_DESCRIBE@"
#else
#  define LD31_GIT_DESCRIBE "Out-of-Git build"
#endif

#if ((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__)
#  define LD31_WINDOWS
#  define WIN31_LEAN_AND_MEAN
#elif ((defined __APPLE__) && (defined __MACH__))
#  define LD31_MACOSX
#  define LD31_POSIX
#  error("Currently doesn't support OS X")
#elif (defined __linux__)
#  define LD31_LINUX
#  define LD31_UNIX
#  define LD31_POSIX
#elif (defined unix) || (defined __unix__)
#  define LD31_UNIX
#  define LD31_POSIX
#endif

#if (defined __x86_64__) || (defined _M_X64) || (defined __ia64___)
#  define LD31_64
#else
#  define LD31_32
#endif

#if (defined _DEBUG) && (!defined NDEBUG)
#  define LD31_DEBUG
#else
#  define LD31_RELEASE
#endif
