Minor changes for MSVC

This commit is contained in:
Andreas Huggel 2004-09-12 15:22:51 +00:00
parent d1f5f97687
commit 3c8ff8b00a
3 changed files with 25 additions and 5 deletions

View File

@ -28,9 +28,12 @@
#pragma alloca
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
# include <config.h>
#else
# ifdef _MSC_VER
# include <config_win32.h>
# endif
#endif
#ifdef __GNUC__

View File

@ -1,9 +1,15 @@
/*!
@file localtime.c
@brief This file is from the tz distribution at ftp://elsie.nci.nih.gov/pub/
@version $Name: $ $Revision: 1.1 $
@version $Name: $ $Revision: 1.2 $
*/
#include <config.h>
#ifdef HAVE_CONFIG_H
# include <config.h>
#else
# ifdef _MSC_VER
# include <config_win32.h>
# endif
#endif
#include "timegm.h"
/*

View File

@ -1,7 +1,7 @@
/*!
@file private.h
@brief This file is from the tz distribution at ftp://elsie.nci.nih.gov/pub/
@version $Name: $ $Revision: 1.2 $
@version $Name: $ $Revision: 1.3 $
*/
#ifndef PRIVATE_H
@ -32,6 +32,12 @@ static char privatehid[] = "@(#)private.h 7.53";
/* ahu: moved required preprocessor symbols to config.h */
/* ahu: disable warnings */
#ifdef _MSC_VER
// disable warning 'uses old-style declarator' C4131
#pragma warning (disable: 4131)
#endif
/*
** Nested includes
*/
@ -44,6 +50,11 @@ static char privatehid[] = "@(#)private.h 7.53";
#include "time.h"
#include "stdlib.h"
/* ahu: added io.h for MSVC */
#ifdef _MSC_VER
# include "io.h"
#endif
/* ahu: deleted include libintl.h */
/* ahu: deleted include sys/wait.h and WIFEXITED, WEXITSTATUS macros */