Some corrections yet after build from scratch.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 8 Apr 2007 11:24:59 +0000 (11:24 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 8 Apr 2007 11:24:59 +0000 (11:24 +0000)
org.glite.jp.index/src/conf.h
org.glite.jp.ws-interface/src/ws_fault.c

index b89ef5d..cfdf588 100644 (file)
@@ -5,10 +5,12 @@
 
 #include <glite/jp/types.h>
 
-#ifdef __GNUC__
-  #define UNUSED __attribute__((unused))
-#else
-  #define UNUSED
+#ifndef UNUSED
+  #ifdef __GNUC__
+    #define UNUSED __attribute__((unused))
+  #else
+    #define UNUSED
+  #endif
 #endif
 
 #define GLITE_JPIS_DEFAULT_PORT_STR "8902"
index 896d627..255e98d 100644 (file)
@@ -5,10 +5,12 @@
 #include <glite/jp/types.h>
 #include <glite/security/glite_gscompat.h>
 
-#ifdef __GNUC__
-  #define UNUSED __attribute__((unused))
-#else
-  #define UNUSED
+#ifndef UNUSED
+  #ifdef __GNUC__
+    #define UNUSED __attribute__((unused))
+  #else
+    #define UNUSED
+  #endif
 #endif
 
 #define GSOAP_STRING(CHOICE) GLITE_SECURITY_GSOAP_CHOICE_GET(CHOICE, string, stringOrBlob, 1)
@@ -137,5 +139,3 @@ static void glite_jp_server_err2fault(const glite_jp_context_t ctx,struct soap *
        if (soap->version == 2) soap->fault->SOAP_ENV__Detail = detail;
        else soap->fault->detail = detail;
 }
-
-#undef UNUSED