summaryrefslogtreecommitdiffstats
path: root/libvncclient/vncviewer.c
diff options
context:
space:
mode:
authorDaniel Cohen Gindi <danielgindi@gmail.com>2014-08-29 10:59:56 +0300
committerJohannes Schindelin <johannes.schindelin@gmx.de>2014-09-02 16:43:17 +0200
commit366dda995182b3d4b199a3df262cdacb6d40cecc (patch)
tree69a6768ea6a314e9ee6372c7b35abc3925d80790 /libvncclient/vncviewer.c
parent4c2cfb17f02b4eac9499ce2ba215426a1c85de8f (diff)
downloadlibvncserver-366dda995182b3d4b199a3df262cdacb6d40cecc.zip
libvncserver-366dda995182b3d4b199a3df262cdacb6d40cecc.tar.gz
Use WIN32 for Windows-specific #ifdef guards
To support Microsoft Visual C++, we must not guard Windows-specific code in MinGW-specific #ifdef guards. Happily, even 64-bit MSVC defines the WIN32 constant, therefore we can use that instead. [JES: fixed commit message, reordered commit, split out unrelated changes] Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'libvncclient/vncviewer.c')
-rw-r--r--libvncclient/vncviewer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c
index 5819c1d..9d657ed 100644
--- a/libvncclient/vncviewer.c
+++ b/libvncclient/vncviewer.c
@@ -45,7 +45,7 @@ static rfbBool DummyPoint(rfbClient* client, int x, int y) {
static void DummyRect(rfbClient* client, int x, int y, int w, int h) {
}
-#ifdef __MINGW32__
+#ifdef WIN32
static char* NoPassword(rfbClient* client) {
return strdup("");
}
@@ -56,9 +56,9 @@ static char* NoPassword(rfbClient* client) {
#endif
static char* ReadPassword(rfbClient* client) {
-#ifdef __MINGW32__
+#ifdef WIN32
/* FIXME */
- rfbClientErr("ReadPassword on MinGW32 NOT IMPLEMENTED\n");
+ rfbClientErr("ReadPassword on Windows NOT IMPLEMENTED\n");
return NoPassword(client);
#else
int i;
OpenPOWER on IntegriCloud