Skip to content

Commit

Permalink
build: introduced header guards in parse_conf.h
Browse files Browse the repository at this point in the history
Before, we had "#pragma once" but to be uniform we also
put the standard header guards here
  • Loading branch information
pstorz authored and franku committed Sep 12, 2018
1 parent cfbf334 commit 5da3626
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/lib/parse_conf.h
Expand Up @@ -23,7 +23,9 @@
/*
* Kern Sibbald, January MM
*/
#pragma once
#ifndef BAREOS_CORE_SRC_LIB_PARSE_CONF_H_
#define BAREOS_CORE_SRC_LIB_PARSE_CONF_H_


#include "include/bareos.h"
#include "include/bc_types.h"
Expand Down Expand Up @@ -666,3 +668,5 @@ json_t *json_items(ResourceItem items[]);
#define foreach_res(var, type) \
for (var = NULL; (*((void **)&(var)) = (void *)my_config->GetNextRes((type), (CommonResourceHeader *)var));)
#endif

#endif // BAREOS_CORE_SRC_LIB_PARSE_CONF_H_

0 comments on commit 5da3626

Please sign in to comment.