harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r482829 - in /harmony/enhanced/classlib/trunk/modules: awt/src/main/native/oglwrapper/shared/ awt/src/main/native/x11wrapper/unix/ luni/src/main/native/launcher/shared/ luni/src/main/native/luni/shared/ portlib/src/main/native/include/share...
Date Tue, 05 Dec 2006 23:37:29 GMT
Author: hindessm
Date: Tue Dec  5 15:37:25 2006
New Revision: 482829

URL: http://svn.apache.org/viewvc?view=rev&rev=482829
Log:
Adding ifdef tests for FreeBSD.

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/shared/nativelib_common.h
    harmony/enhanced/classlib/trunk/modules/awt/src/main/native/x11wrapper/unix/nativelib_common.h
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/cbigint.c
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/dblparse.c
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hycomp.h
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyfiletext.c
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysl.c

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/shared/nativelib_common.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/shared/nativelib_common.h?view=diff&rev=482829&r1=482828&r2=482829
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/shared/nativelib_common.h
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/shared/nativelib_common.h
Tue Dec  5 15:37:25 2006
@@ -21,7 +21,7 @@
 #ifndef NATIVELIB_COMMON_H
 #define NATIVELIB_COMMON_H
 
-#ifdef       __linux__
+#if defined(LINUX) || defined(FREEBSD)
 // common linux section--------------------------------
 #include <dlfcn.h>
 #include <stdint.h>

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/x11wrapper/unix/nativelib_common.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/x11wrapper/unix/nativelib_common.h?view=diff&rev=482829&r1=482828&r2=482829
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/x11wrapper/unix/nativelib_common.h
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/x11wrapper/unix/nativelib_common.h
Tue Dec  5 15:37:25 2006
@@ -21,7 +21,7 @@
 #ifndef NATIVELIB_COMMON_H
 #define NATIVELIB_COMMON_H
 
-#ifdef       __linux__
+#if defined(LINUX) || defined(FREEBSD)
 // common linux section--------------------------------
 #include <dlfcn.h>
 #include <stdint.h>

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c?view=diff&rev=482829&r1=482828&r2=482829
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c Tue
Dec  5 15:37:25 2006
@@ -45,7 +45,7 @@
 #define PLATFORM_STRNICMP strnicmp
 #endif
 
-#if (LINUX)
+#if (LINUX) || defined(FREEBSD)
 #define PLATFORM_STRNICMP strncasecmp
 #endif
 

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/cbigint.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/cbigint.c?view=diff&rev=482829&r1=482828&r2=482829
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/cbigint.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/cbigint.c Tue
Dec  5 15:37:25 2006
@@ -18,7 +18,7 @@
 #include <string.h>
 #include "cbigint.h"
 
-#if defined(LINUX)
+#if defined(LINUX) || defined(FREEBSD)
 #define USE_LL
 #endif
 

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/dblparse.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/dblparse.c?view=diff&rev=482829&r1=482828&r2=482829
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/dblparse.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/dblparse.c Tue
Dec  5 15:37:25 2006
@@ -22,7 +22,7 @@
 #include "jclglob.h"
 #include "exceptions.h"
 
-#if defined(LINUX)
+#if defined(LINUX) || defined(FREEBSD)
 #define USE_LL
 #endif
 

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hycomp.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hycomp.h?view=diff&rev=482829&r1=482828&r2=482829
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hycomp.h
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hycomp.h
Tue Dec  5 15:37:25 2006
@@ -46,7 +46,7 @@
 */
 /* By default order doubles in the native (i.e. big/little endian) ordering. */
 #define HY_PLATFORM_DOUBLE_ORDER
-#if defined(LINUX)
+#if defined(LINUX) || defined(FREEBSD)
 /* NOTE: Linux supports different processors -- do not assume 386 */
 #if defined(HYX86_64) || defined(HYIA64)
 #define DATA_TYPES_DEFINED

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyfiletext.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyfiletext.c?view=diff&rev=482829&r1=482828&r2=482829
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyfiletext.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyfiletext.c
Tue Dec  5 15:37:25 2006
@@ -26,7 +26,7 @@
 
 /* __STDC_ISO_10646__ indicates that the platform wchar_t encoding is Unicode */
 /* but older versions of libc fail to set the flag, even though they are Unicode */
-#if defined(__STDC_ISO_10646__) || defined(LINUX)
+#if defined(__STDC_ISO_10646__) || defined(LINUX) || defined(FREEBSD)
 #define HYVM_USE_WCTOMB
 #else
 #define HYVM_USE_ICONV

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysl.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysl.c?view=diff&rev=482829&r1=482828&r2=482829
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysl.c (original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysl.c Tue Dec
 5 15:37:25 2006
@@ -36,7 +36,7 @@
 /* Start copy from hyfiletext.c */
 /* __STDC_ISO_10646__ indicates that the platform wchar_t encoding is Unicode */
 /* but older versions of libc fail to set the flag, even though they are Unicode */
-#if defined(__STDC_ISO_10646__) || defined(LINUX)
+#if defined(__STDC_ISO_10646__) || defined(LINUX) || defined(FREEBSD)
 #define HYVM_USE_MBTOWC
 #else
 #define HYVM_USE_ICONV



Mime
View raw message