Skip to content
Permalink
Browse files

mingw32 support

  • Loading branch information...
taviso committed Apr 28, 2009
1 parent 47f471e commit 5c0452672a8c7958cc5312c90cfbda3bd5b21e6b
Showing with 6 additions and 5 deletions.
  1. +1 −1 Makefile
  2. +5 −4 ttf2eot.cpp
@@ -2,4 +2,4 @@ ttf2eot: OpenTypeUtilities.o ttf2eot.o
g++ -o $@ $^

clean:
rm -f *.o *.core core ttf2eot *.eot
rm -f *.o *.core *.obj *.exe core ttf2eot
@@ -11,7 +11,10 @@
#ifndef _MSC_VER
# include <stdint.h>
#else
// setmode() headers
typedef unsigned char uint8_t;
#endif

#if defined(_MSC_VER) || defined(__MINGW32__)
# include <io.h>
# include <fcntl.h>
# ifndef _O_BINARY
@@ -20,8 +23,6 @@
# ifndef _O_TEXT
# define _O_TEXT 0x4000
# endif

typedef unsigned char uint8_t;
#endif

#include "OpenTypeUtilities.h"
@@ -44,7 +45,7 @@ int main(int argc, char **argv)
FILE *input;
unsigned char *fontData;

#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__MINGW32__)
setmode(_fileno(stdin), _O_BINARY);
setmode(_fileno(stdout), _O_BINARY);
setmode(_fileno(stderr), _O_TEXT);

0 comments on commit 5c04526

Please sign in to comment.
You can’t perform that action at this time.