Skip to content

Commit 479e4a9

Browse files
committed
Add include guards
1 parent 462fcf7 commit 479e4a9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Modelica/Resources/C-Sources/repl_str.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
* Released to public domain
55
*/
66

7+
#ifndef MODELICA_REPL_STR_H_
8+
#define MODELICA_REPL_STR_H_
9+
710
#include <string.h>
811
#include <stdlib.h>
912
#include <stddef.h>
@@ -104,3 +107,5 @@ static char *repl_str(const char *str, const char *from, const char *to) {
104107
free(pos_cache);
105108
return ret;
106109
}
110+
111+
#endif

Modelica/Resources/C-Sources/strptime.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
the %L format specifier
3636
*/
3737

38+
#ifndef MODELICA_STRPTIME_H_
39+
#define MODELICA_STRPTIME_H_
40+
3841
#include <ctype.h>
3942
#include <string.h>
4043
#include <time.h>
@@ -566,3 +569,5 @@ find_string (const unsigned char *bp, int *tgt, const char * const *n1,
566569
/* Nothing matched */
567570
return NULL;
568571
}
572+
573+
#endif

0 commit comments

Comments
 (0)