mirror of
https://github.com/anope/anope.git
synced 2026-07-05 03:33:12 +02:00
2881ba112b
- Use _MSC_VER for detecting MSVC instead of a custom define. - Remove MINGW as you can use __MINGW32__ to detect this. - Stop defining _WIN32 as this will always be defined on Windows.
28 lines
525 B
CMake
28 lines
525 B
CMake
/*
|
|
*
|
|
* (C) 2003-2021 Anope Team
|
|
* Contact us at team@anope.org
|
|
*
|
|
* Please read COPYING and README for further details.
|
|
*
|
|
* Based on the original code of Epona by Lara.
|
|
* Based on the original code of Services by Andy Church.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#cmakedefine DEBUG_BUILD
|
|
|
|
#cmakedefine DEFUMASK @DEFUMASK@
|
|
#cmakedefine01 HAVE_UMASK
|
|
#cmakedefine01 HAVE_LOCALIZATION
|
|
|
|
#ifdef _WIN32
|
|
# define popen _popen
|
|
# define pclose _pclose
|
|
# ifdef _MSC_VER
|
|
# define PATH_MAX MAX_PATH
|
|
# endif
|
|
# define sleep(x) Sleep(x * 1000)
|
|
#endif
|