Skip to content

Commit

Permalink
Add include guards
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Oct 27, 2024
1 parent 6f7d4bd commit caac04a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Modelica/Resources/C-Sources/repl_str.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* Released to public domain
*/

#ifndef MODELICA_REPL_STR_H_
#define MODELICA_REPL_STR_H_

#include <string.h>
#include <stdlib.h>
#include <stddef.h>
Expand Down Expand Up @@ -104,3 +107,5 @@ static char *repl_str(const char *str, const char *from, const char *to) {
free(pos_cache);
return ret;
}

#endif
5 changes: 5 additions & 0 deletions Modelica/Resources/C-Sources/strptime.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
the %L format specifier
*/

#ifndef MODELICA_STRPTIME_H_
#define MODELICA_STRPTIME_H_

#include <ctype.h>
#include <string.h>
#include <time.h>
Expand Down Expand Up @@ -566,3 +569,5 @@ find_string (const unsigned char *bp, int *tgt, const char * const *n1,
/* Nothing matched */
return NULL;
}

#endif

0 comments on commit caac04a

Please sign in to comment.