Skip to content

Commit b0c5ec7

Browse files
clover2123ksh8281
authored andcommitted
Add macro to header files not to be included twice
Signed-off-by: HyukWoo Park <[email protected]>
1 parent c392db2 commit b0c5ec7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/runtime/DefinedFunctionTypes.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef __WalrusDefinedFunctionTypes__
18+
#define __WalrusDefinedFunctionTypes__
19+
1720
#include "Walrus.h"
1821

1922
namespace Walrus {
@@ -190,3 +193,5 @@ class DefinedFunctionTypes {
190193
};
191194

192195
} // namespace Walrus
196+
197+
#endif //__WalrusDefinedFunctionTypes__

src/wasi/WASI.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef __WalrusWASI__
18+
#define __WalrusWASI__
19+
1720
#include "Walrus.h"
1821
#include "runtime/Function.h"
1922
#include "runtime/ObjectType.h"
@@ -161,3 +164,5 @@ class WASI {
161164
};
162165

163166
} // namespace Walrus
167+
168+
#endif // __WalrusWASI__

0 commit comments

Comments
 (0)