aboutsummaryrefslogtreecommitdiff
path: root/xorg-server
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-06-14 15:17:24 +0000
committermarha <marha@users.sourceforge.net>2010-06-14 15:17:24 +0000
commit1ceae771f1f16ef36c5083f5e678959b3b490c8f (patch)
tree4f66ecc20779e04a2a212de2d877e1391abc11a9 /xorg-server
parentf9a9d9e67912e77e6bccb18ee7ef8fd4d32df867 (diff)
downloadvcxsrv-1ceae771f1f16ef36c5083f5e678959b3b490c8f.tar.gz
vcxsrv-1ceae771f1f16ef36c5083f5e678959b3b490c8f.tar.bz2
vcxsrv-1ceae771f1f16ef36c5083f5e678959b3b490c8f.zip
Solved compiler warnings
Diffstat (limited to 'xorg-server')
-rw-r--r--xorg-server/config/config.c4
-rw-r--r--xorg-server/dix/dixfonts.c4
-rw-r--r--xorg-server/glx/glxscreens.c4
-rw-r--r--xorg-server/hw/xwin/glx/indirect.c4
4 files changed, 16 insertions, 0 deletions
diff --git a/xorg-server/config/config.c b/xorg-server/config/config.c
index 5a7b0ea17..7566748b9 100644
--- a/xorg-server/config/config.c
+++ b/xorg-server/config/config.c
@@ -32,6 +32,10 @@
#include "hotplug.h"
#include "config-backends.h"
+#ifdef _MSC_VER
+#define strdup _strdup
+#endif
+
void
config_init(void)
{
diff --git a/xorg-server/dix/dixfonts.c b/xorg-server/dix/dixfonts.c
index 1cc5a9161..c701c9fbe 100644
--- a/xorg-server/dix/dixfonts.c
+++ b/xorg-server/dix/dixfonts.c
@@ -74,6 +74,10 @@ Equipment Corporation.
#include "xf86bigfontsrv.h"
#endif
+#ifdef _MSC_VER
+#define strdup _strdup
+#endif
+
#define QUERYCHARINFO(pci, pr) *(pr) = (pci)->metrics
extern pointer fosNaturalParams;
diff --git a/xorg-server/glx/glxscreens.c b/xorg-server/glx/glxscreens.c
index 3ba8a64fc..a8420c749 100644
--- a/xorg-server/glx/glxscreens.c
+++ b/xorg-server/glx/glxscreens.c
@@ -48,6 +48,10 @@
#include "glxext.h"
#include "protocol-versions.h"
+#ifdef _MSC_VER
+#define strdup _strdup
+#endif
+
static DevPrivateKeyRec glxScreenPrivateKeyRec;
#define glxScreenPrivateKey (&glxScreenPrivateKeyRec)
diff --git a/xorg-server/hw/xwin/glx/indirect.c b/xorg-server/hw/xwin/glx/indirect.c
index bc0d24841..ce58c0a05 100644
--- a/xorg-server/hw/xwin/glx/indirect.c
+++ b/xorg-server/hw/xwin/glx/indirect.c
@@ -80,6 +80,10 @@
#include "win.h"
#include <winmsg.h>
+#ifdef _MSC_VER
+#define strdup _strdup
+#endif
+
extern Bool g_fXdmcpEnabled;
extern Bool g_fNativeGl;