Ed Schouten
78f622e84a
Use endianness definitions provided by GCC or Clang if available.
...
Instead of using all sorts of operating system specific constructs, we
can just query the compiler which byte order is being used. This has the
advantage that the code builds on new platforms without any tweaks.
2015-01-07 22:33:54 +01:00
Ed Schouten
9a48c87386
Don't attempt to pull in <sys/cdefs.h> directly.
...
<sys/cdefs.h> is not a standard header. Instead, we'd better pull in a
common header like <stdio.h>. It is very likely that such a header
already provides the necessary bits.
2015-01-07 22:22:52 +01:00
Thomas Leonard
4cb9231f1a
Removed some uses of sys/types.h
...
It's useful to be able to compile openlibm in environments where this
doesn't exist (e.g. OS kernels).
2014-12-01 11:10:41 +00:00
Thomas Leonard
9f4f2c6d57
u_int8_t, etc are non-standard, so define on all platforms
2014-11-27 14:47:36 +00:00
Thomas Leonard
f22d7db106
Fixed build on ARM
...
Removed all long double support, since ARM doesn't have long doubles.
2014-05-26 10:55:49 +01:00
Tony Kelman
8b59bbc18b
Export ldexp aliases on Windows
...
skip END and add .drectve export in assembly versions
uncomment __strong_reference definition from cdefs-compat.h
use weak references in place of strong references on Mac
add DLLEXPORT to all strong references
Fixes Julia issue #6777
2014-05-09 17:05:33 -07:00
Jameson Nash
2eb1876bb8
add more windows compatibility definitions
2014-03-18 21:22:51 -04:00
Jameson Nash
66e6f8ea91
normalize __WIN32__ to _WIN32, which is defined by all Windows compilers
2014-03-18 20:47:48 -04:00
Jameson Nash
e9661c36af
WIN32 build fix
2012-11-09 02:25:25 -05:00
Mike Nolta
ec53659c6a
fixes for freebsd9
2012-10-30 17:54:30 -04:00
Keno Fischer
87ce7cedda
Fix build on amd64 linux
2012-08-19 04:15:47 -04:00
Keno Fischer
4b078ee343
Fix __weak_reference for clang [ closes #9 ]
2012-07-03 13:50:00 +02:00
Viral B. Shah
62c895488f
Workarounds in cdefs-compat for clang.
2012-07-03 16:24:32 +05:30
Keno Fischer
f21624349f
Build fix for amd64 Linux
2012-05-25 20:04:41 -07:00
Keno Fischer
adb103acec
Build fixes for Windows
2012-05-25 21:25:13 -04:00
Jameson Nash
a9d723a19e
typo
2012-04-08 21:02:23 -04:00
Jameson Nash
8d25b39dca
What is __strong_reference? cleaning up compat.h files so it builds on Mac again
2012-04-08 20:56:51 -04:00
Jameson Nash
0df00dd0f7
initial attempt getting everything to build on windows
2012-04-08 20:03:36 -04:00
Viral B. Shah
db4db9cf35
uint64_t -> u_int64_t
2011-08-13 10:43:52 +05:30
Viral B. Shah
d8bc4c085d
BYTE_ORDER and ENDIAN detection
2011-08-13 10:22:37 +05:30
Viral B. Shah
aba7ae910f
Initialize repo. FreeBSD 8.2 msun code + some tweaks
2011-08-13 00:31:25 +05:30