Add magic #defines to avoid default small Mac stdio limits

This commit is contained in:
Eric Fischer
2016-12-08 12:33:02 -08:00
parent 6530e155eb
commit 5960a15fcd
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -2,6 +2,10 @@
#include <mcheck.h> #include <mcheck.h>
#endif #endif
#ifdef __APPLE__
#define _DARWIN_UNLIMITED_STREAMS
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <math.h> #include <math.h>
+4
View File
@@ -1,3 +1,7 @@
#ifdef __APPLE__
#define _DARWIN_UNLIMITED_STREAMS
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
+4
View File
@@ -1,3 +1,7 @@
#ifdef __APPLE__
#define _DARWIN_UNLIMITED_STREAMS
#endif
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
#include <string> #include <string>