Add missing #endif in platform detection

This commit is contained in:
Martchus 2017-01-14 02:24:36 +01:00
parent 8d95b4497f
commit 1bff266fa9
1 changed files with 8 additions and 7 deletions

View File

@ -6,12 +6,19 @@
/// \brief Defined when compiling for Windows. /// \brief Defined when compiling for Windows.
# define PLATFORM_WINDOWS # define PLATFORM_WINDOWS
# endif # endif
#endif
#if defined(__CYGWIN__) #if defined(__CYGWIN__)
# ifndef PLATFORM_CYGWIN # ifndef PLATFORM_CYGWIN
/// \brief Defined when compiling for Cygwin. /// \brief Defined when compiling for Cygwin.
# define PLATFORM_CYGWIN # define PLATFORM_CYGWIN
# endif # endif
#endif #endif
# if defined(__MINGW32__) || defined(__MINGW64__)
# ifndef PLATFORM_MINGW
/// \brief Defined when compiling with mingw(-w64).
# define PLATFORM_MINGW
# endif
# endif
#if defined(__linux__) || defined(__linux) || defined(__gnu_linux__) #if defined(__linux__) || defined(__linux) || defined(__gnu_linux__)
# ifndef PLATFORM_LINUX # ifndef PLATFORM_LINUX
/// \brief Defined when compiling for Linux. /// \brief Defined when compiling for Linux.
@ -43,13 +50,7 @@
# define PLATFORM_FREE_BSD # define PLATFORM_FREE_BSD
# endif # endif
#endif #endif
# if defined(__MINGW32__) || defined(__MINGW64__) #if defined(__unix__) || defined(PLATFORM_LINUX) || defined(PLATFORM_FREE_BSD) || defined(PLATFORM_MAC)
# ifndef PLATFORM_MINGW
/// \brief Defined when compiling with mingw(-w64).
# define PLATFORM_MINGW
# endif
# endif
#elif defined(__unix__) || defined(PLATFORM_LINUX) || defined(PLATFORM_FREE_BSD) || defined(PLATFORM_MAC)
# ifndef PLATFORM_UNIX # ifndef PLATFORM_UNIX
/// \brief Defined when compiling for any UNIX (like) system. /// \brief Defined when compiling for any UNIX (like) system.
# define PLATFORM_UNIX # define PLATFORM_UNIX