Commit 13cb80068e86e02abc2ef669fc9ba4370f81f411

henry 2003-09-21T22:36:29

Fixed FT_OPEN_MEMORY for 2.1.5

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/FTFace.cpp b/src/FTFace.cpp
index 5b4a39f..874e43c 100755
--- a/src/FTFace.cpp
+++ b/src/FTFace.cpp
@@ -58,11 +58,15 @@ bool FTFace::Attach( const char* filename)
 }
 
 
+#ifndef FT_OPEN_MEMORY
+    #define FT_OPEN_MEMORY (FT_Open_Flags)1
+#endif
+
 bool FTFace::Attach( const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 {
     FT_Open_Args open;
 
-    open.flags = (FT_Open_Flags)1; // FT_OPEN_MEMORY;
+    open.flags = FT_OPEN_MEMORY;
     open.memory_base = (FT_Byte *)pBufferBytes;
     open.memory_size = bufferSizeInBytes;