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

View File

@ -2,6 +2,10 @@
#include <mcheck.h>
#endif
#ifdef __APPLE__
#define _DARWIN_UNLIMITED_STREAMS
#endif
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

View File

@ -1,3 +1,7 @@
#ifdef __APPLE__
#define _DARWIN_UNLIMITED_STREAMS
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -1,3 +1,7 @@
#ifdef __APPLE__
#define _DARWIN_UNLIMITED_STREAMS
#endif
#include <iostream>
#include <fstream>
#include <string>