harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r672388 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/native/lcmm/shared/NativeCMM.c
Date Fri, 27 Jun 2008 20:51:04 GMT
Author: hindessm
Date: Fri Jun 27 13:51:03 2008
New Revision: 672388

URL: http://svn.apache.org/viewvc?rev=672388&view=rev
Log:
Avoid compiler warning - why would we use _strdup not strdup on Linux?  Or
on any platform for that matter?

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/native/lcmm/shared/NativeCMM.c

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/lcmm/shared/NativeCMM.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/lcmm/shared/NativeCMM.c?rev=672388&r1=672387&r2=672388&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/lcmm/shared/NativeCMM.c (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/lcmm/shared/NativeCMM.c Fri
Jun 27 13:51:03 2008
@@ -28,10 +28,10 @@
 int gl_cmsErrorHandler(int errorCode, const char *msg) {
   if(errorCode == LCMS_ERRC_ABORTED) {
     // Throw exception later, after returning control from cmm
-#ifndef ZOS
-    errMsg = _strdup(msg);
-#else
+#if defined(ZOS) || defined(LINUX)
     errMsg = strdup(msg);
+#else
+    errMsg = _strdup(msg);
 #endif
   }
 



Mime
View raw message