diff options
Diffstat (limited to 'libfontenc/src')
-rw-r--r-- | libfontenc/src/encparse.c | 3 | ||||
-rw-r--r-- | libfontenc/src/fontenc.c | 3 | ||||
-rw-r--r-- | libfontenc/src/makefile | 13 |
3 files changed, 19 insertions, 0 deletions
diff --git a/libfontenc/src/encparse.c b/libfontenc/src/encparse.c index 675fc740b..efc766bf3 100644 --- a/libfontenc/src/encparse.c +++ b/libfontenc/src/encparse.c @@ -35,6 +35,9 @@ THE SOFTWARE. #endif
#include <stdlib.h>
+#ifdef _MSC_VER
+#define strdup _strdup
+#endif
#include "zlib.h"
typedef gzFile FontFilePtr;
diff --git a/libfontenc/src/fontenc.c b/libfontenc/src/fontenc.c index 16f180b69..a121eca8f 100644 --- a/libfontenc/src/fontenc.c +++ b/libfontenc/src/fontenc.c @@ -37,6 +37,9 @@ THE SOFTWARE. #include <X11/fonts/fontenc.h>
#include "fontencI.h"
+#ifdef _MSC_VER
+#define strdup _strdup
+#endif
/* Functions local to this file */
diff --git a/libfontenc/src/makefile b/libfontenc/src/makefile new file mode 100644 index 000000000..161c9961f --- /dev/null +++ b/libfontenc/src/makefile @@ -0,0 +1,13 @@ +LIBRARY = libfontenc + +CSRCS = \ + encparse.c \ + fontenc.c + +#FONTENCDIR=@ENCODINGSDIR@ +DEFINES += FONT_ENCODINGS_DIRECTORY="\"encodings.dir\"" strcasecmp=_stricmp + +#INCLUDES = -I$(top_srcdir)/include -DFONTENC_NO_LIBFONT $(FONTENCDEFS) + + + |