Minor changes for MSVC
This commit is contained in:
parent
d1f5f97687
commit
3c8ff8b00a
@ -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__
|
||||
|
||||
@ -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"
|
||||
|
||||
/*
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user