From ebd7bf99f08edd7336c99469da06953c03d46b6f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 31 Aug 2014 00:05:08 -0400 Subject: [PATCH] Portability - Moved stdio.h to be (almost) first in the include order, to prevent and other include from in turn including stdio.h without first defining _WITH_GETLINE. --- src/util.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 6d77867db..6bd7642ca 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -25,6 +25,13 @@ //////////////////////////////////////////////////////////////////////////////// #include +// If is included, put it after , because it includes +// , and therefore would ignore the _WITH_GETLINE. +#ifdef FREEBSD +#define _WITH_GETLINE +#endif +#include +#include #include #include #include @@ -38,13 +45,6 @@ #include #include #include -// If is included, put it after , because it includes -// , and therefore would ignore the _WITH_GETLINE. -#ifdef FREEBSD -#define _WITH_GETLINE -#endif -#include -#include #include #include #include