commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r811298 - in /commons/sandbox/runtime/trunk/src/main/native/include: acr.h acr_port.h
Date Fri, 04 Sep 2009 09:05:32 GMT
Author: mturk
Date: Fri Sep  4 09:05:32 2009
New Revision: 811298

URL: http://svn.apache.org/viewvc?rev=811298&view=rev
Log:
Few more portable macros that should be present everywhere

Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/acr.h
    commons/sandbox/runtime/trunk/src/main/native/include/acr_port.h

Modified: commons/sandbox/runtime/trunk/src/main/native/include/acr.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr.h?rev=811298&r1=811297&r2=811298&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr.h Fri Sep  4 09:05:32 2009
@@ -282,7 +282,6 @@
 /** Default alignment */
 #define ACR_ALIGN_DEFAULT(size) ACR_ALIGN(size, 8)
 
-
 /**
  * ACR_DECLARE_EXPORT is defined when building the ANNEX dynamic library,
  * so that all public symbols are exported.

Modified: commons/sandbox/runtime/trunk/src/main/native/include/acr_port.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr_port.h?rev=811298&r1=811297&r2=811298&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr_port.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr_port.h Fri Sep  4 09:05:32 2009
@@ -22,6 +22,23 @@
 #define UNUSED_SOURCE_FILE(F)   \
 const char __provided_##F [] = "Using system provided " #F "()"
 
+#if !defined(FALSE)
+#define FALSE       (0)
+#endif
+#if !defined(TRUE)
+#define TRUE        (!FALSE)
+#endif
+
+#if !defined(ABS)
+#define ABS(x)      (((x) >   0) ? (x) : -(x))
+#endif
+#if !defined(MAX)
+#define MAX(a, b)   (((a) > (b)) ? (a) :  (b))
+#endif
+#if !defined(MIN)
+#define MIN(a, b)   (((a) < (b)) ? (a) :  (b))
+#endif
+
 /**
  * Function prototypes for the portable layer
  */



Mime
View raw message