[svn-r11598] Purpose:

Code cleanup

Description:
    Take out odd definition of HDalarm() and replace with standard macro
like the rest of the library.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
This commit is contained in:
Quincey Koziol 2005-10-22 13:37:56 -05:00
parent e3d9211fa9
commit d2f2b5090c
2 changed files with 5 additions and 15 deletions

View File

@ -830,18 +830,6 @@ HDvsnprintf(char *buf, size_t UNUSED size, const char *fmt, va_list ap)
#endif /* H5_HAVE_VSNPRINTF */
#endif /* __PUMAGON__ */
#ifndef H5_HAVE_ALARM
#ifdef WIN32
unsigned int HDalarm(N) {
return 0;
}
#endif
#else
unsigned int HDalarm(unsigned int N) {
return alarm(N);
}
#endif
/*-------------------------------------------------------------------------
* Function: HDfprintf

View File

@ -545,6 +545,11 @@ H5_DLL void H5_bandwidth(char *buf/*out*/, double nbytes, double nseconds);
#define HDabs(X) abs(X)
#define HDaccess(F,M) access(F, M)
#define HDacos(X) acos(X)
#ifdef H5_HAVE_ALARM
#define HDalarm(N) alarm(N)
#else /* H5_HAVE_ALARM */
#define HDalarm(N) (0)
#endif /* H5_HAVE_ALARM */
#define HDasctime(T) asctime(T)
#define HDasin(X) asin(X)
#define HDassert(X) assert(X)
@ -1393,7 +1398,4 @@ H5_DLL int H5S_term_interface(void);
H5_DLL int H5T_term_interface(void);
H5_DLL int H5Z_term_interface(void);
/* Define alarm function since windows doesn't support alarm function*/
H5_DLL unsigned int HDalarm(unsigned int N);
#endif