mirror of https://github.com/Icinga/icinga2.git
Removed I2_PLATFORM* macros.
This commit is contained in:
parent
746400afe5
commit
ff3259eee6
|
@ -61,14 +61,9 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
#define PLATFORM_WINDOWS 1
|
|
||||||
#define PLATFORM_UNIX 2
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# define I2_PLATFORM PLATFORM_WINDOWS
|
|
||||||
# include "win32.h"
|
# include "win32.h"
|
||||||
#else
|
#else
|
||||||
# define I2_PLATFORM PLATFORM_UNIX
|
|
||||||
# include "unix.h"
|
# include "unix.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
#include "i2-base.h"
|
#include "i2-base.h"
|
||||||
|
|
||||||
#if I2_PLATFORM == PLATFORM_UNIX
|
|
||||||
#include <ltdl.h>
|
#include <ltdl.h>
|
||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
@ -44,4 +44,4 @@ void closesocket(SOCKET fd)
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* I2_PLATFORM == PLATFORM_UNIX */
|
#endif /* _WIN32 */
|
||||||
|
|
|
@ -17,12 +17,11 @@
|
||||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
#include "i2-base.h"
|
#include "i2-base.h"
|
||||||
|
|
||||||
#if I2_PLATFORM == PLATFORM_WINDOWS
|
|
||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
/* nothing here (yet) */
|
/* nothing here (yet) */
|
||||||
|
|
||||||
#endif /* I2_PLATFORM == PLATFORM_WINDOWS */
|
#endif /* _WIN32 */
|
||||||
|
|
Loading…
Reference in New Issue