summaryrefslogtreecommitdiff
path: root/src/emscripten-optimizer/snprintf.h
diff options
context:
space:
mode:
authorJF Bastien <jfb@chromium.org>2015-12-22 14:53:34 -0800
committerJF Bastien <jfb@chromium.org>2015-12-22 14:53:34 -0800
commitb6786d8187e79d60fcb24e3e6589444cf463128a (patch)
treec17e7e8e244089d67a8b9ef57a1a9d9634798528 /src/emscripten-optimizer/snprintf.h
parent7c39b5ee5dcaf2182d20ca1cb540bbff9adc4c0b (diff)
downloadbinaryen-b6786d8187e79d60fcb24e3e6589444cf463128a.tar.gz
binaryen-b6786d8187e79d60fcb24e3e6589444cf463128a.tar.bz2
binaryen-b6786d8187e79d60fcb24e3e6589444cf463128a.zip
Fix / uniformize include guards
Diffstat (limited to 'src/emscripten-optimizer/snprintf.h')
-rw-r--r--src/emscripten-optimizer/snprintf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emscripten-optimizer/snprintf.h b/src/emscripten-optimizer/snprintf.h
index 8f4a690ca..86335661d 100644
--- a/src/emscripten-optimizer/snprintf.h
+++ b/src/emscripten-optimizer/snprintf.h
@@ -14,6 +14,9 @@
* limitations under the License.
*/
+#ifndef wasm_snprintf_h
+#define wasm_snprintf_h
+
#include <stdarg.h>
// Visual Studio does not support C99, so emulate snprintf support for it manually.
@@ -46,3 +49,5 @@ inline int c99_snprintf(char* str, size_t size, const char* format, ...)
return count;
}
#endif
+
+#endif // wasm_snprintf_h