Last active
December 30, 2015 00:39
-
-
Save mcs07/7751030 to your computer and use it in GitHub Desktop.
A patch for ocrad 0.22 to compile with libc++ which is now the default in OS X Mavericks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/character_r11.cc b/character_r11.cc | |
index 9b054e1..794e9c0 100644 | |
--- a/character_r11.cc | |
+++ b/character_r11.cc | |
@@ -18,6 +18,7 @@ | |
#include <algorithm> | |
#include <cstdio> | |
+#include <cstdlib> | |
#include <vector> | |
#include <stdint.h> | |
diff --git a/feats_test0.cc b/feats_test0.cc | |
index 26c755a..45b827b 100644 | |
--- a/feats_test0.cc | |
+++ b/feats_test0.cc | |
@@ -18,6 +18,7 @@ | |
#include <algorithm> | |
#include <cstdio> | |
+#include <cstdlib> | |
#include <vector> | |
#include <stdint.h> | |
diff --git a/ocradlib.h b/ocradlib.h | |
index 280c5f5..2598a46 100644 | |
--- a/ocradlib.h | |
+++ b/ocradlib.h | |
@@ -25,6 +25,8 @@ | |
Public License. | |
*/ | |
+#include <stdint.h> | |
+ | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
diff --git a/profile.cc b/profile.cc | |
index d1d81e3..244bf09 100644 | |
--- a/profile.cc | |
+++ b/profile.cc | |
@@ -18,6 +18,7 @@ | |
#include <algorithm> | |
#include <cstdio> | |
+#include <cstdlib> | |
#include <vector> | |
#include <stdint.h> | |
diff --git a/track.cc b/track.cc | |
index 12e2c4a..c6fa77a 100644 | |
--- a/track.cc | |
+++ b/track.cc | |
@@ -18,6 +18,7 @@ | |
#include <algorithm> | |
#include <cstdio> | |
+#include <cstdlib> | |
#include <vector> | |
#include "common.h" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment