Skip to content

Commit ecb4d5a

Browse files
authored
Update the include guard in H5pubconf.h (#5820)
1 parent de77525 commit ecb4d5a

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

config/H5pubconf.h.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* If you do not have access to either file, you may request a copy from *
1010
1111
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
12-
/* H5pubconf.h Generated By CMake during the configuration */
12+
/* H5pubconf.h Generated By CMake during configuration */
1313

14-
#ifndef H5_CONFIG_H_
15-
#define H5_CONFIG_H_
14+
#ifndef H5pubconf_H
15+
#define H5pubconf_H
1616

1717
/* Define if this is a Windows machine */
1818
#cmakedefine H5_HAVE_WINDOWS @H5_HAVE_WINDOWS@

src/H5public.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,8 @@
1616
#ifndef H5public_H
1717
#define H5public_H
1818

19-
/* Include files for public use... */
20-
/*
21-
* Since H5pubconf.h is a generated header file, it is messy to try
22-
* to put a #ifndef H5pubconf_H ... #endif guard in it.
23-
* HDF5 has set an internal rule that it is being included here.
24-
* Source files should NOT include H5pubconf.h directly but include
25-
* it via H5public.h. The #ifndef H5public_H guard above would
26-
* prevent repeated include.
27-
*/
28-
#include "H5pubconf.h" /* From configure */
19+
/* Configure options */
20+
#include "H5pubconf.h"
2921

3022
/* API Version macro wrapper definitions */
3123
#include "H5version.h"

0 commit comments

Comments
 (0)