summaryrefslogtreecommitdiffhomepage
path: root/include/ucode/lib.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-03-14 23:10:23 +0100
committerJo-Philipp Wich <jo@mein.io>2022-03-15 23:15:11 +0100
commit49838a84f557688a21a24292504021a63992b92c (patch)
tree59881b8f5cfa49719e9b8d86a60d96c4560b86d8 /include/ucode/lib.h
parent807060a5d2d40113d9d78bf9e3866efb3de4c442 (diff)
include: rename include guards to avoid clashes with system headers
Identifiers starting with one or two underscores are reserved for system headers and toolchain implementations and should not appear in user code. Also on OS X, the ucode __TYPES_H_ guard clashes with the system types.h header. Rename all ucode header guards to avoid such clashes. Supersedes: #43 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'include/ucode/lib.h')
-rw-r--r--include/ucode/lib.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ucode/lib.h b/include/ucode/lib.h
index 4b70635..095956a 100644
--- a/include/ucode/lib.h
+++ b/include/ucode/lib.h
@@ -14,8 +14,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef __LIB_H_
-#define __LIB_H_
+#ifndef UCODE_LIB_H
+#define UCODE_LIB_H
#include "vm.h"
#include "lexer.h"
@@ -103,4 +103,4 @@ _uc_function_list_register(uc_value_t *object, const uc_function_list_t *list, s
#define uc_function_list_register(object, functions) \
_uc_function_list_register(object, functions, ARRAY_SIZE(functions))
-#endif /* __LIB_H_ */
+#endif /* UCODE_LIB_H */