From caac04a5149eb8c21ce6921349a6a216c3b35e77 Mon Sep 17 00:00:00 2001 From: Thomas Beutlich Date: Sun, 27 Oct 2024 12:37:40 +0100 Subject: [PATCH] Add include guards --- Modelica/Resources/C-Sources/repl_str.h | 5 +++++ Modelica/Resources/C-Sources/strptime.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Modelica/Resources/C-Sources/repl_str.h b/Modelica/Resources/C-Sources/repl_str.h index 1fa189b871..c451971511 100644 --- a/Modelica/Resources/C-Sources/repl_str.h +++ b/Modelica/Resources/C-Sources/repl_str.h @@ -4,6 +4,9 @@ * Released to public domain */ +#ifndef MODELICA_REPL_STR_H_ +#define MODELICA_REPL_STR_H_ + #include #include #include @@ -104,3 +107,5 @@ static char *repl_str(const char *str, const char *from, const char *to) { free(pos_cache); return ret; } + +#endif diff --git a/Modelica/Resources/C-Sources/strptime.h b/Modelica/Resources/C-Sources/strptime.h index e89ce8ef70..e57033be28 100644 --- a/Modelica/Resources/C-Sources/strptime.h +++ b/Modelica/Resources/C-Sources/strptime.h @@ -35,6 +35,9 @@ the %L format specifier */ +#ifndef MODELICA_STRPTIME_H_ +#define MODELICA_STRPTIME_H_ + #include #include #include @@ -566,3 +569,5 @@ find_string (const unsigned char *bp, int *tgt, const char * const *n1, /* Nothing matched */ return NULL; } + +#endif