Portability

- Added _WITH_GETLINE for FreeBSD.
This commit is contained in:
Paul Beckingham 2014-08-30 23:38:11 -04:00
parent b4ab5fcfac
commit 284146162f

View file

@ -39,6 +39,11 @@
#include <fcntl.h>
#include <unistd.h>
#include <math.h>
// If <iostream> is included, put it after <stdio.h>, because it includes
// <stdio.h>, and therefore would ignore the _WITH_GETLINE.
#ifdef FREEBSD
#define _WITH_GETLINE
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>