diff options
author | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-11-04 13:38:23 +0000 |
---|---|---|
committer | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-11-04 13:38:23 +0000 |
commit | 18e9d42b59925987d8128096c4a7ea6d49721862 (patch) | |
tree | 88c937bff6ebdfb615423012e29ef12a772f645a | |
parent | cc2da1f3790db3d689fac08d4afc0404297e6d89 (diff) | |
download | mpc-18e9d42b59925987d8128096c4a7ea6d49721862.tar.gz |
mpc-impl.h, random.c: include config.h as first include file
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1111 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r-- | src/mpc-impl.h | 4 | ||||
-rw-r--r-- | tests/random.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/mpc-impl.h b/src/mpc-impl.h index 88a49d8..1293273 100644 --- a/src/mpc-impl.h +++ b/src/mpc-impl.h @@ -28,8 +28,10 @@ along with this program. If not, see http://www.gnu.org/licenses/ . #define __MPC_WITHIN_MPC 1 #endif -#include <stdlib.h> #include "config.h" +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif #include "mpc.h" #define MPC_RE(x) ((x)->re) diff --git a/tests/random.c b/tests/random.c index d5f44c4..61deb4d 100644 --- a/tests/random.c +++ b/tests/random.c @@ -22,11 +22,10 @@ along with this program. If not, see http://www.gnu.org/licenses/ . test_end at the end. These are an adaptation of those of MPFR. */ +#include "config.h" #include <stdlib.h> - #include "mpc-tests.h" -#include "config.h" #ifdef TIME_WITH_SYS_TIME # include <sys/time.h> |