From 60d51585989239413e6902ce0c0d04a44568ea7a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sun, 8 Apr 2007 11:24:59 +0000 Subject: [PATCH] Some corrections yet after build from scratch. --- org.glite.jp.index/src/conf.h | 10 ++++++---- org.glite.jp.ws-interface/src/ws_fault.c | 12 ++++++------ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/org.glite.jp.index/src/conf.h b/org.glite.jp.index/src/conf.h index b89ef5d..cfdf588 100644 --- a/org.glite.jp.index/src/conf.h +++ b/org.glite.jp.index/src/conf.h @@ -5,10 +5,12 @@ #include -#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" diff --git a/org.glite.jp.ws-interface/src/ws_fault.c b/org.glite.jp.ws-interface/src/ws_fault.c index 896d627..255e98d 100644 --- a/org.glite.jp.ws-interface/src/ws_fault.c +++ b/org.glite.jp.ws-interface/src/ws_fault.c @@ -5,10 +5,12 @@ #include #include -#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 -- 1.8.2.3