diff options
Diffstat (limited to 'xorg-server')
-rw-r--r-- | xorg-server/config/config.c | 4 | ||||
-rw-r--r-- | xorg-server/dix/dixfonts.c | 4 | ||||
-rw-r--r-- | xorg-server/glx/glxscreens.c | 4 | ||||
-rw-r--r-- | xorg-server/hw/xwin/glx/indirect.c | 4 |
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;
|