Removed I2_PLATFORM* macros.

This commit is contained in:
Gunnar Beutner 2012-07-12 16:12:19 +02:00
parent 746400afe5
commit ff3259eee6
3 changed files with 4 additions and 10 deletions

View File

@ -61,14 +61,9 @@
# 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

View File

@ -17,9 +17,9 @@
* 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;
@ -44,4 +44,4 @@ void closesocket(SOCKET fd)
close(fd);
}
#endif /* I2_PLATFORM == PLATFORM_UNIX */
#endif /* _WIN32 */

View File

@ -17,12 +17,11 @@
* 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 */