harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r950994 - /harmony/enhanced/java/trunk/jdktools/modules/jpda/src/main/native/jdwp/unix/transport/dt_socket/SocketTransport_pd.h
Date Thu, 03 Jun 2010 13:38:17 GMT
Author: hindessm
Date: Thu Jun  3 13:38:16 2010
New Revision: 950994

URL: http://svn.apache.org/viewvc?rev=950994&view=rev
Log:
The rest of the unix world defines TRUE to 1 using #define so to avoid
a syntax error on those platforms lets use the same mechanism here too.
(Fixes Aix for me.)

Modified:
    harmony/enhanced/java/trunk/jdktools/modules/jpda/src/main/native/jdwp/unix/transport/dt_socket/SocketTransport_pd.h

Modified: harmony/enhanced/java/trunk/jdktools/modules/jpda/src/main/native/jdwp/unix/transport/dt_socket/SocketTransport_pd.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/jdktools/modules/jpda/src/main/native/jdwp/unix/transport/dt_socket/SocketTransport_pd.h?rev=950994&r1=950993&r2=950994&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/jdktools/modules/jpda/src/main/native/jdwp/unix/transport/dt_socket/SocketTransport_pd.h
(original)
+++ harmony/enhanced/java/trunk/jdktools/modules/jpda/src/main/native/jdwp/unix/transport/dt_socket/SocketTransport_pd.h
Thu Jun  3 13:38:16 2010
@@ -57,7 +57,9 @@ typedef int SOCKET;
 typedef timeval TIMEVAL;
 typedef int BOOL;
 
-const int TRUE = 1;
+#ifndef TRUE
+#define TRUE 1
+#endif
 const int SOCKET_ERROR = -1;
 const int SOCKET_ERROR_EINTR = EINTR;
 const int INVALID_SOCKET = -1;



Mime
View raw message