mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-31 17:10:47 +08:00
[svn-r3273]
Purpose: Avoid windows warnings Description: Solution: put some windows specified headers into this file Platforms tested: Win 2000, confirmed by eirene
This commit is contained in:
parent
162c14cea3
commit
df0b3ecd5b
@ -130,6 +130,12 @@
|
||||
#ifdef H5_HAVE_WINDOWS_H
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#include <io.h>
|
||||
#include <process.h>
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#ifndef F_OK
|
||||
# define F_OK 00
|
||||
# define W_OK 02
|
||||
@ -721,10 +727,23 @@ __DLL__ int64_t HDstrtoll (const char *s, const char **rest, int base);
|
||||
* And now for a couple non-Posix functions... Watch out for systems that
|
||||
* define these in terms of macros.
|
||||
*/
|
||||
#if !defined strdup && !defined HAVE_STRDUP
|
||||
/*
|
||||
if !defined strdup && !defined HAVE_STRDUP && !defined _strdup
|
||||
char *strdup(const char *s);
|
||||
#endif
|
||||
#define HDstrdup(S) strdup(S)
|
||||
*/
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
#define HDstrdup(S) _strdup(S)
|
||||
#elif !defined strdup && !defined HAVE_STRDUP
|
||||
char *strdup(const char *s);
|
||||
#define HDstrdup(S) strdup(S)
|
||||
#else
|
||||
#define HDstrdup(S) strdup(S)
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef H5_HAVE_SNPRINTF
|
||||
__DLL__ int HDsnprintf(char *buf, size_t size, const char *fmt, ...);
|
||||
|
Loading…
x
Reference in New Issue
Block a user