[PD-cvs] externals/iem/iemmatrix/src iemmatrix.h,1.4,1.5

IOhannes m zmölnig zmoelnig at users.sourceforge.net
Tue May 10 11:41:18 CEST 2005


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

Modified Files:
	iemmatrix.h 
Log Message:
use "__WIN32__" instead of "NT"
__WIN32__ is automatically defined on MinGW (at least on my debian x-compiler
NT has to be defined by hand on all windows compilers
i believe that __WIN32__ is more in line with __APPLE__ or __linux__



Index: iemmatrix.h
===================================================================
RCS file: /cvsroot/pure-data/externals/iem/iemmatrix/src/iemmatrix.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** iemmatrix.h	27 Apr 2005 16:51:26 -0000	1.4
--- iemmatrix.h	10 May 2005 09:41:16 -0000	1.5
***************
*** 17,22 ****
  
  /*
!  * Copyright (c) IOhannes m zmölnig, forum::für::umläute
!  * IEM, Graz, Austria
   *
   * For information on usage and redistribution, and for a DISCLAIMER OF ALL
--- 17,22 ----
  
  /*
!  * Copyright (c) Thomas Musil; IEM KUG, Graz, Austria; 2001-2005
!  * Copyright (c) IOhannes m zmölnig (forum::für::umläute), IEM KUG, Graz, Austria; 2001-2005
   *
   * For information on usage and redistribution, and for a DISCLAIMER OF ALL
***************
*** 32,43 ****
  #define INCLUDE_IEMMATRIX_H__
  
- #include "m_pd.h"
  
! #define VERSION "0.1"
  
- #ifdef NT
  # pragma warning( disable : 4244 )
  # pragma warning( disable : 4305 )
! #endif
  
  #include <math.h>
--- 32,56 ----
  #define INCLUDE_IEMMATRIX_H__
  
  
! #ifdef __WIN32__
! /* MinGW automaticaly defines __WIN32__
!  * other windos compilers might have to define it by hand
!  */
! 
! /* m_pd.h expexts MSW rather than __WIN32__ */
! # ifndef MSW
! #  define MSW
! # endif
  
  # pragma warning( disable : 4244 )
  # pragma warning( disable : 4305 )
! 
! #endif /* __WIN32__ */
! 
! 
! #include "m_pd.h"
! 
! #define VERSION "0.1"
! 
  
  #include <math.h>
***************
*** 47,52 ****
  #include <memory.h>
  
! #ifdef NT
  # define fabsf fabs
  #endif
  
--- 60,66 ----
  #include <memory.h>
  
! #ifdef __WIN32__
  # define fabsf fabs
+ # define sqrtf sqrt
  #endif
  





More information about the Pd-cvs mailing list