Commit 38410620169854adf44e1fd468dbce7824fcc872

Steffen Jaeckel 2019-03-26T17:47:34

Merge pull request #176 from libtom/do-not-include-stdio do not include stdio.h if LTM_NO_FILE is defined

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/tommath.h b/tommath.h
index e0eb259..71ecaf5 100644
--- a/tommath.h
+++ b/tommath.h
@@ -12,11 +12,14 @@
 #ifndef BN_H_
 #define BN_H_
 
-#include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
 #include <limits.h>
 
+#ifndef LTM_NO_FILE
+#  include <stdio.h>
+#endif
+
 #include "tommath_class.h"
 
 #ifdef __cplusplus