# include "config.h"
#endif /* _MSC_VER */
-#define PLATFORM_WINDOWS 1
-#define PLATFORM_UNIX 2
-
#ifdef _WIN32
-# define I2_PLATFORM PLATFORM_WINDOWS
# include "win32.h"
#else
-# define I2_PLATFORM PLATFORM_UNIX
# include "unix.h"
#endif
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
+#ifndef _WIN32
#include "i2-base.h"
-#if I2_PLATFORM == PLATFORM_UNIX
#include <ltdl.h>
using namespace icinga;
close(fd);
}
-#endif /* I2_PLATFORM == PLATFORM_UNIX */
+#endif /* _WIN32 */
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
+#ifdef _WIN32
#include "i2-base.h"
-#if I2_PLATFORM == PLATFORM_WINDOWS
-
using namespace icinga;
/* nothing here (yet) */
-#endif /* I2_PLATFORM == PLATFORM_WINDOWS */
+#endif /* _WIN32 */