Added clang compatibility.
This commit is contained in:
parent
a74b1ce714
commit
88a5a95b63
4
Makefile
4
Makefile
|
@ -5,7 +5,9 @@ CMDSRC= src/cmd.cpp
|
||||||
TESTSOURCES= tests/test_cheapgmp.cpp
|
TESTSOURCES= tests/test_cheapgmp.cpp
|
||||||
LDFLAGS=
|
LDFLAGS=
|
||||||
TESTLDFLAGS= -laeryn_tests -laeryn_core
|
TESTLDFLAGS= -laeryn_tests -laeryn_core
|
||||||
CFLAGS= -c -Wall -std=c++11
|
|
||||||
|
# Enable __USE_MISC if you're using clang
|
||||||
|
CFLAGS= -c -Wall -std=c++11 # -D__USE_MISC
|
||||||
CPLUSPLUS= g++
|
CPLUSPLUS= g++
|
||||||
BINARY=cheapgmp
|
BINARY=cheapgmp
|
||||||
CMD=gmpcmd
|
CMD=gmpcmd
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "compat.hpp"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
#ifdef __USE_MISC
|
||||||
|
/* Old compatibility names for C types. */
|
||||||
|
typedef unsigned long int ulong;
|
||||||
|
typedef unsigned short int ushort;
|
||||||
|
typedef unsigned int uint;
|
||||||
|
#endif
|
Loading…
Reference in New Issue