Skip to content

Commit 456f268

Browse files
authored
Merge pull request #63 from Igortorrente/master
Add compile guards to C version
2 parents 697a63f + dc4cf44 commit 456f268

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

C/FastNoiseLite.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949

5050
// In *one* C or C++ file, use #define FNL_IMPL to generate implementation
5151

52+
#ifndef FASTNOISELITE_H
53+
#define FASTNOISELITE_H
54+
5255
// Switch between using floats or doubles for input position
5356
typedef float FNLfloat;
5457
//typedef double FNLfloat;
@@ -2426,3 +2429,5 @@ void fnlDomainWarp3D(fnl_state *state, FNLfloat *x, FNLfloat *y, FNLfloat *z)
24262429
#if defined(__cplusplus)
24272430
}
24282431
#endif
2432+
2433+
#endif FASTNOISELITE_H

0 commit comments

Comments
 (0)