]> git.codecow.com Git - Monocypher.git/commitdiff
Use stdint.h over inttypes.h
authorFabio Scotoni <34964387+fscoto@users.noreply.github.com>
Sat, 30 Nov 2019 07:49:23 +0000 (08:49 +0100)
committerFabio Scotoni <34964387+fscoto@users.noreply.github.com>
Sat, 30 Nov 2019 07:49:23 +0000 (08:49 +0100)
Monocypher uses nothing from inttypes.h, other than stdint.h that
inttypes.h indirectly includes.

This seems to make clang --target=wasm32 more amenable to Monocypher in
a freestanding environment.

src/monocypher.h

index 161520ac8c25061229bf154de5a1434436bfdcba..d2c8ed9729a05888c40f841acc5d142377639023 100644 (file)
@@ -3,8 +3,8 @@
 #ifndef MONOCYPHER_H
 #define MONOCYPHER_H
 
-#include <inttypes.h>
 #include <stddef.h>
+#include <stdint.h>
 
 ////////////////////////
 /// Type definitions ///