Use canonical include guards.

Suggested by atgeirr.  Template:

   OPM_<FILENAME>_HEADER_INCLUDED
This commit is contained in:
Bård Skaflestad 2010-10-13 18:35:15 +02:00
parent 799dc936cd
commit ef4d884d12
6 changed files with 16 additions and 16 deletions

4
dfs.h
View File

@ -17,8 +17,8 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DFS_H_INCLUDED
#define DFS_H_INCLUDED
#ifndef OPM_DFS_HEADER_INCLUDED
#define OPM_DFS_HEADER_INCLUDED
#ifdef __cplusplus
extern "C" {

View File

@ -17,8 +17,8 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef FLOW_BC_H_INCLUDED
#define FLOW_BC_H_INCLUDED
#ifndef OPM_FLOW_BC_HEADER_INCLUDED
#define OPM_FLOW_BC_HEADER_INCLUDED
#include <stddef.h>
@ -46,4 +46,4 @@ deallocate_flowbc(flowbc_t *fbc);
}
#endif
#endif /* FLOW_BC_H_INCLUDED */
#endif /* OPM_FLOW_BC_HEADER_INCLUDED */

View File

@ -17,8 +17,8 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MIMETIC_H_INCLUDED
#define MIMETIC_H_INCLUDED
#ifndef OPM_MIMETIC_HEADER_INCLUDED
#define OPM_MIMETIC_HEADER_INCLUDED
#ifdef __cplusplus
extern "C" {
@ -85,4 +85,4 @@ void mim_ip_simple_all(int ncells, int d, int max_ncf, int *ncf,
}
#endif
#endif /* MIMETIC_H_INCLUDED */
#endif /* OPM_MIMETIC_HEADER_INCLUDED */

View File

@ -17,8 +17,8 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PARTITION_H_INCLUDED
#define PARTITION_H_INCLUDED
#ifndef OPM_PARTITION_HEADER_INCLUDED
#define OPM_PARTITION_HEADER_INCLUDED
#ifdef __cplusplus
extern "C" {

View File

@ -17,8 +17,8 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SPARSE_SYS_H_INCLUDED
#define SPARSE_SYS_H_INCLUDED
#ifndef OPM_SPARSE_SYS_HEADER_INCLUDED
#define OPM_SPARSE_SYS_HEADER_INCLUDED
#include <stddef.h>
@ -76,4 +76,4 @@ csrmatrix_zero(struct CSRMatrix *A);
}
#endif
#endif /* SPARSE_SYS_H_INCLUDED */
#endif /* OPM_SPARSE_SYS_HEADER_INCLUDED */

6
well.h
View File

@ -17,8 +17,8 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef WELL_H_INCLUDED
#define WELL_H_INCLUDED
#ifndef OPM_WELL_HEADER_INCLUDED
#define OPM_WELL_HEADER_INCLUDED
#ifdef __cplusplus
extern "C" {
@ -54,4 +54,4 @@ derive_cell_wells(int nc, well_t *W, int *cwpos, int *cwells);
}
#endif
#endif /* WELL_H_INCLUDED */
#endif /* OPM_WELL_HEADER_INCLUDED */