diff options
Diffstat (limited to 'libfontenc')
-rw-r--r-- | libfontenc/src/encparse.c | 4 | ||||
-rw-r--r-- | libfontenc/src/fontenc.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/libfontenc/src/encparse.c b/libfontenc/src/encparse.c index efc766bf3..9fe615436 100644 --- a/libfontenc/src/encparse.c +++ b/libfontenc/src/encparse.c @@ -35,9 +35,7 @@ THE SOFTWARE. #endif
#include <stdlib.h>
-#ifdef _MSC_VER
-#define strdup _strdup
-#endif
+#include <unistd.h>
#include "zlib.h"
typedef gzFile FontFilePtr;
diff --git a/libfontenc/src/fontenc.c b/libfontenc/src/fontenc.c index a121eca8f..b87602c49 100644 --- a/libfontenc/src/fontenc.c +++ b/libfontenc/src/fontenc.c @@ -29,6 +29,7 @@ THE SOFTWARE. #endif
#include <stdlib.h>
+#include <unistd.h>
#define FALSE 0
#define TRUE 1
@@ -37,9 +38,6 @@ THE SOFTWARE. #include <X11/fonts/fontenc.h>
#include "fontencI.h"
-#ifdef _MSC_VER
-#define strdup _strdup
-#endif
/* Functions local to this file */
|