diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2013-06-28 07:23:14 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2013-06-28 07:23:14 +0000 |
commit | 0d794e1f49143e7eaa7888314a38caeb8c7f87b7 (patch) | |
tree | 43aeff4104c9203cdca400cdc1c23cdd46c31e80 /externals/iem | |
parent | 405d7c87afc60bdb9591e9e57cdf5114d68468c8 (diff) |
synched iemlib.h
- include <endian.h> on more platforms
(debian/bsd, hurd, android, cygwin)
- SETNULL/IS_A_NULL macros
(formerly only found in iemlib2)
svn path=/trunk/; revision=17163
Diffstat (limited to 'externals/iem')
-rw-r--r-- | externals/iem/iem_atan2/src/iemlib.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/externals/iem/iem_atan2/src/iemlib.h b/externals/iem/iem_atan2/src/iemlib.h index b2718fa2..ac1ffced 100644 --- a/externals/iem/iem_atan2/src/iemlib.h +++ b/externals/iem/iem_atan2/src/iemlib.h @@ -1,12 +1,13 @@ /* For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. -iemlib written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2011 */ +iemlib written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2012 */ #ifndef __IEMLIB_H__ #define __IEMLIB_H__ +#define IS_A_NULL(atom,index) ((atom+index)->a_type == A_NULL) #define IS_A_POINTER(atom,index) ((atom+index)->a_type == A_POINTER) #define IS_A_FLOAT(atom,index) ((atom+index)->a_type == A_FLOAT) #define IS_A_SYMBOL(atom,index) ((atom+index)->a_type == A_SYMBOL) @@ -15,6 +16,8 @@ iemlib written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2011 * #define IS_A_SEMI(atom,index) ((atom+index)->a_type == A_SEMI) #define IS_A_COMMA(atom,index) ((atom+index)->a_type == A_COMMA) +#define SETNULL(atom) ((atom)->a_type = A_NULL) + /* now miller's code starts : for 4 point interpolation for lookup tables @@ -53,11 +56,11 @@ extern int sys_noloadbang; #define int32 long #endif /* MSW */ -#if defined(__FreeBSD__) || defined(__APPLE__) +#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__FreeBSD_kernel__) #include <machine/endian.h> #endif -#ifdef __linux__ +#if defined(__linux__) || defined(__CYGWIN__) || defined(__GNU__) || defined(ANDROID) #include <endian.h> #endif |