12
12
 
 * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
13
13
 
 * access to either file, you may request a copy from help@hdfgroup.org.     *
14
14
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15
15
 
16
16
 
/* Test user-created identifiers (hid_t's) and identifier types. */
17
17
 
18
18
 
#include "testhdf5.h"
19
19
 
#include "hdf5.h"
20
20
 
21
21
 
    /* Include H5Ipkg.h to calculate max number of groups */
22
 
-
#define H5I_PACKAGE
 
22
+
#define H5I_FRIEND      /*suppress error about including H5Ipkg   */
23
23
 
#include "H5Ipkg.h"
24
24
 
25
25
 
    /* Test basic functionality of registering and deleting types and IDs */
26
26
 
static int basic_id_test(void)
27
27
 
{
28
28
 
    H5I_type_t myType = H5I_BADID;
29
29
 
    hid_t arrayID = H5I_INVALID_HID;
30
30
 
    void* testObj = NULL;
31
31
 
    void* testPtr = NULL;
32
32
 
    char nameString[10];