error: unknown type name 'TCHAR' on Mac OS X
It was reported on the Mac OS X the following compile errors:
In file included from /Users/stephen/Documents/library/applications/saxon/Saxon-HEC-v0.3.1.1-Mac-native/Saxon-C-API/SaxonProcessor.cpp:15: ./php_saxon.cpp:71:6: error: unknown type name 'TCHAR' TCHAR s; ^ ./php_saxon.cpp:74:13: error: unknown type name 'DWORD' DWORD a = GetCurrentDirectory(256, s);
The problem is the preprocessor directives assume linux and windows platforms only. There need to be directives for Mac OS X.
See workaround below:
Instead of : #ifndef __linux__ Replace with the following: #if !(defined (__linux__) || (defined (__APPLE__) && defined(__MACH__)))
Please register to edit this issue