From 11d6dac92b6c3c3f62d49817809ce8c6a61c9293 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 22 Oct 2012 13:54:11 -0500 Subject: XIM: remove Private and Public macros Private is a struct member name in mingw-w64 , causing this useless define in a private header to break the build. Signed-off-by: Yaakov Selkowitz Reviewed-by: Jon TURNEY Backported-to-NX-by: Ulrich Sibiller --- nx-X11/lib/X11/imTransR.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'nx-X11/lib/X11/imTransR.c') diff --git a/nx-X11/lib/X11/imTransR.c b/nx-X11/lib/X11/imTransR.c index e536bbc9b..5f51722da 100644 --- a/nx-X11/lib/X11/imTransR.c +++ b/nx-X11/lib/X11/imTransR.c @@ -57,7 +57,7 @@ PERFORMANCE OF THIS SOFTWARE. #include "XimTrInt.h" #include "Ximint.h" -Public TransportSW _XimTransportRec[] = { +TransportSW _XimTransportRec[] = { { "X", _XimXConf }, /* 1st entry must be X. This will be a fallback */ #ifdef TCPCONN @@ -75,25 +75,25 @@ Public TransportSW _XimTransportRec[] = { { (char *)NULL, (Bool (*)(Xim, char *))NULL }, }; -Public Bool +Bool _XimConnect(Xim im) { return im->private.proto.connect(im); } -Public Bool +Bool _XimShutdown(Xim im) { return im->private.proto.shutdown(im); } -Public Bool +Bool _XimWrite(Xim im, INT16 len, XPointer data) { return im->private.proto.write(im, len, data); } -Private int +static int _CheckProtocolData( Xim im, char *recv_buf) @@ -104,7 +104,7 @@ _CheckProtocolData( return data_len; } -Private int +static int _XimReadData( Xim im, INT16 *len, @@ -221,7 +221,7 @@ _XimReadData( return XIM_TRUE; } -Private Bool +static Bool _XimCallDispatcher( Xim im, INT16 len, @@ -230,7 +230,7 @@ _XimCallDispatcher( return im->private.proto.call_dispatcher(im, len, data); } -Public int +int _XimRead(Xim im, INT16 *len, XPointer buf, int buf_size, Bool (*predicate)(Xim, INT16, XPointer, XPointer), XPointer arg) { @@ -252,7 +252,7 @@ _XimRead(Xim im, INT16 *len, XPointer buf, int buf_size, return True; } -Public Bool +Bool _XimRegisterDispatcher( Xim im, Bool (*callback)( @@ -263,14 +263,14 @@ _XimRegisterDispatcher( return im->private.proto.register_dispatcher(im, callback, call_data); } -Public void +void _XimFlush(Xim im) { im->private.proto.flush(im); return; } -Public Bool +Bool _XimFilterWaitEvent(Xim im) { INT16 read_len; -- cgit v1.2.3