mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
40 lines
882 B
CMake
40 lines
882 B
CMake
/*
|
|
*
|
|
* (C) 2003-2024 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
|
|
|
|
// The default umask to use for files.
|
|
#cmakedefine DEFUMASK @DEFUMASK@
|
|
|
|
// Whether Anope was built in debug mode.
|
|
#cmakedefine01 DEBUG_BUILD
|
|
|
|
// Whether Anope was built with localization support.
|
|
#cmakedefine01 HAVE_LOCALIZATION
|
|
|
|
// Whether the umask() function is available.
|
|
#cmakedefine01 HAVE_UMASK
|
|
|
|
#ifdef _WIN32
|
|
# define popen _popen
|
|
# define pclose _pclose
|
|
# ifdef _MSC_VER
|
|
# define PATH_MAX MAX_PATH
|
|
# endif
|
|
# define sleep(x) Sleep(x * 1000)
|
|
#endif
|
|
|
|
#if defined __GNUC__
|
|
# define ATTR_FORMAT(STRINGPOS, FIRSTPOS) __attribute__((format(printf, STRINGPOS, FIRSTPOS)))
|
|
#else
|
|
# define ATTR_FORMAT(STRINGPOS, FIRSTPOS)
|
|
#endif
|