[PD-cvs] externals/iem/iemgui/src iemlib.h,1.1,1.2

Georg Holzmann grholzi at users.sourceforge.net
Wed Jan 17 19:32:37 CET 2007


Update of /cvsroot/pure-data/externals/iem/iemgui/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29676

Modified Files:
	iemlib.h 
Log Message:
osx fix for iemlib.h


Index: iemlib.h
===================================================================
RCS file: /cvsroot/pure-data/externals/iem/iemgui/src/iemlib.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** iemlib.h	14 Dec 2006 19:41:03 -0000	1.1
--- iemlib.h	17 Jan 2007 18:32:35 -0000	1.2
***************
*** 2,6 ****
  * WARRANTIES, see the file, "LICENSE.txt," in this distribution.
  
! iemlib.h written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2006 */
  
  #ifndef __IEMLIB_H__
--- 2,6 ----
  * WARRANTIES, see the file, "LICENSE.txt," in this distribution.
  
! iemlib written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2006 */
  
  #ifndef __IEMLIB_H__
***************
*** 17,21 ****
  
  
! #ifdef MSW
  int sys_noloadbang;
  //t_symbol *iemgui_key_sym=0;
--- 17,21 ----
  
  
! #ifdef NT
  int sys_noloadbang;
  //t_symbol *iemgui_key_sym=0;
***************
*** 81,86 ****
--- 81,91 ----
  #else
  #ifdef __APPLE__
+ #ifdef __BIG_ENDIAN__
  #define HIOFFSET 0    /* word offset to find MSB */
  #define LOWOFFSET 1    /* word offset to find LSB */
+ #else
+ #define HIOFFSET 1    /* word offset to find MSB */
+ #define LOWOFFSET 0    /* word offset to find LSB */
+ #endif
  #define int32 int  /* a data type that has 32 bits */
  
***************
*** 96,102 ****
--- 101,113 ----
  };
  
+ #if defined __i386__ || defined __x86_64__
  #define IEM_DENORMAL(f) ((((*(unsigned int*)&(f))&0x60000000)==0) || \
  (((*(unsigned int*)&(f))&0x60000000)==0x60000000))
  /* more stringent test: anything not between 1e-19 and 1e19 in absolute val */
+ #else
+ 
+ #define IEM_DENORMAL(f) 0
+ 
+ #endif
  
  #endif





More information about the Pd-cvs mailing list