From abc065ad15f10137890ac36ccf0580a0f88d4591 Mon Sep 17 00:00:00 2001 From: Scott Wegner Date: Thu, 5 Jun 2008 15:02:27 -0500 Subject: [svn-r15154] Purpose: Rename new source file from win32defs.h to H5win32defs.h. Description: To follow the naming convention for source files, we simply rename the new header to H5win32defs.h Tested: None, simple name change. --- MANIFEST | 2 +- src/H5win32defs.h | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/win32defs.h | 56 ------------------------------------------------------- 3 files changed, 57 insertions(+), 57 deletions(-) create mode 100644 src/H5win32defs.h delete mode 100644 src/win32defs.h diff --git a/MANIFEST b/MANIFEST index 19ad8ba..077bc0c 100644 --- a/MANIFEST +++ b/MANIFEST @@ -741,7 +741,7 @@ ./src/Makefile.in ./src/hdf5.h ./src/libhdf5.settings.in -./src/win32defs.h +./src/H5win32defs.h ./test/COPYING ./test/Makefile.am diff --git a/src/H5win32defs.h b/src/H5win32defs.h new file mode 100644 index 0000000..484b73d --- /dev/null +++ b/src/H5win32defs.h @@ -0,0 +1,56 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Copyright by The HDF Group. * + * Copyright by the Board of Trustees of the University of Illinois. * + * All rights reserved. * + * * + * This file is part of HDF5. The full HDF5 copyright notice, including * + * terms governing use, modification, and redistribution, is contained in * + * the files COPYING and Copyright.html. COPYING can be found at the root * + * of the source code distribution tree; Copyright.html can be found at the * + * root level of an installed copy of the electronic HDF5 document set and * + * is linked from the top-level documents page. It can also be found at * + * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have * + * access to either file, you may request a copy from help@hdfgroup.org. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/* Programmer: Scott Wegner + * June 3, 2008 + * + * Purpose: This file is used to map HDF macros to Windows functions. This + * should get included H5private mappings, so as to override them. + * Any macro not mapped here, however, will receive a similar mapping + * inside H5private.h + * + */ + +#ifdef _WIN32 + +typedef struct _stati64 h5_stat_t; +typedef __int64 h5_stat_size_t; + +#define HDaccess(F,M) _access(F,M) +#define HDclose(F) _close(F) +#define HDdup(F) _dup(F) +#define HDfdopen(N,S) _fdopen(N,S) +#define HDfileno(F) _fileno(F) +#define HDfstat(F,B) _fstati64(F,B) +#define HDisatty(F) _isatty(F) +#define HDstat(S,B) _stati64(S,B) +#define HDgetcwd(S,Z) _getcwd(S,Z) +#define HDgetdcwd(D,S,Z) _getdcwd(D,S,Z) +#define HDgetdrive() _getdrive() +#define HDlseek(F,O,W) _lseeki64(F,O,W) +#define HDmemset(X,C,Z) memset((void*)(X),C,Z) +#define HDmkdir(S,M) _mkdir(S) +#define HDopen(S,F,M) _open(S,F|_O_BINARY,M) +#define HDread(F,M,Z) _read(F,M,Z) +#define HDsetvbuf(F,S,M,Z) setvbuf(F,S,M,(Z>1?Z:2)) +#define HDstrdup(S) _strdup(S) +#define HDsnprintf _snprintf /*varargs*/ +#define HDtzset() _tzset() +#define HDunlink(S) _unlink(S) +#define HDvsnprintf(S,N,FMT,A) _vsnprintf(S,N,FMT,A) +#define HDwrite(F,M,Z) _write(F,M,Z) + + +#endif /* _WIN32 */ diff --git a/src/win32defs.h b/src/win32defs.h deleted file mode 100644 index 484b73d..0000000 --- a/src/win32defs.h +++ /dev/null @@ -1,56 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Copyright by The HDF Group. * - * Copyright by the Board of Trustees of the University of Illinois. * - * All rights reserved. * - * * - * This file is part of HDF5. The full HDF5 copyright notice, including * - * terms governing use, modification, and redistribution, is contained in * - * the files COPYING and Copyright.html. COPYING can be found at the root * - * of the source code distribution tree; Copyright.html can be found at the * - * root level of an installed copy of the electronic HDF5 document set and * - * is linked from the top-level documents page. It can also be found at * - * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have * - * access to either file, you may request a copy from help@hdfgroup.org. * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -/* Programmer: Scott Wegner - * June 3, 2008 - * - * Purpose: This file is used to map HDF macros to Windows functions. This - * should get included H5private mappings, so as to override them. - * Any macro not mapped here, however, will receive a similar mapping - * inside H5private.h - * - */ - -#ifdef _WIN32 - -typedef struct _stati64 h5_stat_t; -typedef __int64 h5_stat_size_t; - -#define HDaccess(F,M) _access(F,M) -#define HDclose(F) _close(F) -#define HDdup(F) _dup(F) -#define HDfdopen(N,S) _fdopen(N,S) -#define HDfileno(F) _fileno(F) -#define HDfstat(F,B) _fstati64(F,B) -#define HDisatty(F) _isatty(F) -#define HDstat(S,B) _stati64(S,B) -#define HDgetcwd(S,Z) _getcwd(S,Z) -#define HDgetdcwd(D,S,Z) _getdcwd(D,S,Z) -#define HDgetdrive() _getdrive() -#define HDlseek(F,O,W) _lseeki64(F,O,W) -#define HDmemset(X,C,Z) memset((void*)(X),C,Z) -#define HDmkdir(S,M) _mkdir(S) -#define HDopen(S,F,M) _open(S,F|_O_BINARY,M) -#define HDread(F,M,Z) _read(F,M,Z) -#define HDsetvbuf(F,S,M,Z) setvbuf(F,S,M,(Z>1?Z:2)) -#define HDstrdup(S) _strdup(S) -#define HDsnprintf _snprintf /*varargs*/ -#define HDtzset() _tzset() -#define HDunlink(S) _unlink(S) -#define HDvsnprintf(S,N,FMT,A) _vsnprintf(S,N,FMT,A) -#define HDwrite(F,M,Z) _write(F,M,Z) - - -#endif /* _WIN32 */ -- cgit v0.12