Browse Source

mi_xmlrpc: define TRUE/FALSE if not defined

- reported by GH #885
Daniel-Constantin Mierla 8 years ago
parent
commit
4578f09db8

+ 1 - 0
src/modules/mi_xmlrpc/abyss_conf.c

@@ -50,6 +50,7 @@
 #include "abyss_trace.h"
 #include "abyss_server.h"
 #include "abyss_http.h"
+#include "xr_abyss_defs.h"
 
 /*********************************************************************
 ** Configuration Files Parsing Functions

+ 1 - 0
src/modules/mi_xmlrpc/abyss_conn.c

@@ -15,6 +15,7 @@
 #include "abyss_thread.h"
 
 #include "abyss_conn.h"
+#include "xr_abyss_defs.h"
 
 /*********************************************************************
 ** Conn

+ 1 - 8
src/modules/mi_xmlrpc/abyss_data.c

@@ -44,14 +44,7 @@
 #include "abyss_token.h"
 
 #include "abyss_data.h"
-
-#ifndef TRUE
-#define TRUE	1
-#endif	/* TRUE */
-
-#ifndef FALSE
-#define FALSE    0
-#endif  /* FALSE */
+#include "xr_abyss_defs.h"
 
 /*********************************************************************
 ** List

+ 1 - 0
src/modules/mi_xmlrpc/abyss_date.c

@@ -39,6 +39,7 @@
 
 #include <inttypes.h>
 #include "abyss_date.h"
+#include "xr_abyss_defs.h"
 
 /*********************************************************************
 ** Date

+ 1 - 0
src/modules/mi_xmlrpc/abyss_file.c

@@ -45,6 +45,7 @@
 
 #include <xmlrpc-c/abyss.h>
 #include "abyss_file.h"
+#include "xr_abyss_defs.h"
 
 /*********************************************************************
 ** File

+ 1 - 0
src/modules/mi_xmlrpc/abyss_http.c

@@ -22,6 +22,7 @@
 #include "abyss_info.h"
 
 #include "abyss_http.h"
+#include "xr_abyss_defs.h"
 
 /*********************************************************************
 ** Request Parser

+ 1 - 0
src/modules/mi_xmlrpc/abyss_response.c

@@ -27,6 +27,7 @@
 #include "abyss_data.h"
 #include "abyss_info.h"
 #include "abyss_http.h"
+#include "xr_abyss_defs.h"
 
 
 

+ 1 - 0
src/modules/mi_xmlrpc/abyss_server.c

@@ -32,6 +32,7 @@
 #include "abyss_info.h"
 
 #include "abyss_server.h"
+#include "xr_abyss_defs.h"
 
 
 void

+ 1 - 0
src/modules/mi_xmlrpc/abyss_session.c

@@ -43,6 +43,7 @@
 #include "abyss_conn.h"
 
 #include "abyss_session.h"
+#include "xr_abyss_defs.h"
 
 
 

+ 1 - 0
src/modules/mi_xmlrpc/abyss_socket.c

@@ -64,6 +64,7 @@
 #endif
 
 #include "abyss_socket.h"
+#include "xr_abyss_defs.h"
 
 
 static void

+ 1 - 0
src/modules/mi_xmlrpc/abyss_socket_unix.c

@@ -69,6 +69,7 @@
 #include <xmlrpc-c/abyss.h>
 
 #include "abyss_socket_unix.h"
+#include "xr_abyss_defs.h"
 
 
 

+ 1 - 0
src/modules/mi_xmlrpc/abyss_thread_fork.c

@@ -46,6 +46,7 @@
 
 #include "abyss_mallocvar.h"
 #include "abyss_thread.h"
+#include "xr_abyss_defs.h"
 
 
 static void

+ 1 - 0
src/modules/mi_xmlrpc/abyss_token.c

@@ -35,6 +35,7 @@
 #include <xmlrpc-c/abyss.h>
 
 #include "abyss_token.h"
+#include "xr_abyss_defs.h"
 
 void
 NextToken(const char ** const pP) {

+ 1 - 0
src/modules/mi_xmlrpc/abyss_trace.c

@@ -37,6 +37,7 @@
 #include <stdarg.h>
 
 #include "abyss_trace.h"
+#include "xr_abyss_defs.h"
 
 /*********************************************************************
 ** Tracing functions

+ 1 - 0
src/modules/mi_xmlrpc/abyss_xmlrpc_server.c

@@ -24,6 +24,7 @@
 #include <xmlrpc-c/server.h>
 #include "abyss_xmlrpc_int.h"
 #include <xmlrpc-c/server_abyss.h>
+#include "xr_abyss_defs.h"
 
 
 /*=========================================================================

+ 34 - 0
src/modules/mi_xmlrpc/xr_abyss_defs.h

@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2016 kamailio.org
+ *
+ * This file is part of Kamailio.
+ *
+ * Kamailio is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * Kamailio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ *
+ */
+
+
+#ifndef _XR_ABYSS_DEFS_H_
+#define _XR_ABYSS_DEFS_H_
+
+#ifndef TRUE
+#define TRUE	1
+#endif	/* TRUE */
+
+#ifndef FALSE
+#define FALSE    0
+#endif  /* FALSE */
+
+#endif