diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-08-09 16:53:43 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-08-09 16:53:43 (GMT) |
commit | 70f1a12883e8568c093b54d7686131f7b76c5f18 (patch) | |
tree | 315dd0224a747c437873ded4e206dc800f56ff5e /tools | |
parent | 32929893cfa80ee31832fe1c24edcd54de301e3e (diff) | |
download | hdf5-70f1a12883e8568c093b54d7686131f7b76c5f18.zip hdf5-70f1a12883e8568c093b54d7686131f7b76c5f18.tar.gz hdf5-70f1a12883e8568c093b54d7686131f7b76c5f18.tar.bz2 |
[svn-r11222] Purpose:
feature
Description:
Add the test for tmpfile. If it does not exist, compile in our own
version (which always returns NULL for now.)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/h5tools_utils.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c index df103d7..6684adb 100644 --- a/tools/lib/h5tools_utils.c +++ b/tools/lib/h5tools_utils.c @@ -666,3 +666,28 @@ add_obj(table_t *table, haddr_t objno, char *objname) table->objs[i].objname = HDstrdup(objname); } + +#ifndef H5_HAVE_TMPFILE +/*------------------------------------------------------------------------- + * Function: tmpfile + * + * Purpose: provide tmpfile() function when it is not supported by the + * system. Always return NULL for now. + * + * Return: a stream description when succeeds. + * NULL if fails. + * + * Programmer: Albert Cheng, 2005/8/9 + * + * Modifications: + * + *------------------------------------------------------------------------- + */ +static +FILE * +tmpfile(void) +{ + return NULL; +} + +#endif |