upload tizen2.0 source
[framework/uifw/xorg/lib/xtrans.git] / transport.c
index 5131d99..2cb8882 100644 (file)
@@ -47,19 +47,19 @@ from The Open Group.
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-
-#ifdef XSERV_t
-#include "os.h"
-#else
 #include <stdlib.h>
-#define xalloc(_size)          malloc(_size)
-#define xcalloc(_num,_size)    calloc(_num,_size)
-#define xrealloc(_ptr,_size)   realloc(_ptr,_size)
-#define xfree(_ptr)            free(_ptr)
-#endif
+
+#define XTRANS_TRANSPORT_C  /* used to flag Xtransint.h that it's being used
+                              here, not just #included in another file */
 
 #include "Xtransint.h"
 
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wformat-nonliteral"
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
 #ifdef LOCALCONN
 #include "Xtranslcl.c"
 #endif
@@ -71,3 +71,7 @@ from The Open Group.
 #endif
 #include "Xtrans.c"
 #include "Xtransutil.c"
+
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif