Skip to content
Permalink
Browse files

basic MSVC support.

  • Loading branch information
taviso committed Apr 28, 2009
1 parent fd56320 commit 165380f5d7d411038e255b221db0c565966903c4
Showing with 21 additions and 3 deletions.
  1. +2 −0 ChangeLog
  2. +7 −1 OpenTypeUtilities.cpp
  3. +12 −2 ttf2eot.cpp
@@ -1,2 +1,4 @@
- 0.0.2-1
- Fix implicit declaration of memcmp, required on ubuntu - Thanks adamplumb
- Quick modification to make msvc compilation work - Thanks deepikakorapati

@@ -25,12 +25,18 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <stdint.h>
#include <string.h>
#include <vector>

#ifndef _MSC_VER
# include <stdint.h>
#else
typedef unsigned char uint8_t;
#endif

#include "OpenTypeUtilities.h"


using std::vector;

typedef unsigned Fixed;
@@ -4,11 +4,16 @@
#include <stdio.h>
#include <assert.h>
#include <limits.h>
#include <stdint.h>
#include <string.h>

#include <vector>

#ifndef _MSC_VER
# include <stdint.h>
#else
typedef unsigned char uint8_t;
#endif

#include "OpenTypeUtilities.h"

#ifndef SIZE_MAX
@@ -30,9 +35,14 @@ int main(int argc, char **argv)
unsigned char *fontData;

if (argv[1] == NULL || (argv[1][0] == '-' && argv[1][1] == '\0')) {
#ifndef _MSC_VER
input = stdin;
#else
fprintf(stderr, "usage: %s input.ttf > output.eot\n", argv[0]);
return 1;
#endif
} else {
input = fopen(argv[1], "r");
input = fopen(argv[1], "rb");
if (input == NULL) {
fprintf(stderr, "could not open input file %s, %m\n", argv[1]);
return 1;

0 comments on commit 165380f

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