Improve MinGW support.
- Code specific to Windows was #ifdef'ed with _MSC_VER so it wasn't included with MinGW. So _MSC_VER is replaced with _WIN32. - MinGW doesn't support _get_pgmptr() so it is necessary to directly call the Win32 function GetModuleFileName(). This implies including windows.h which in turn causes a name clash with the Win32 function SearchPath(). So the cc65 type SearchPath is renamed to SearchPaths.
This commit is contained in:
@@ -49,13 +49,13 @@
|
||||
|
||||
|
||||
|
||||
extern SearchPath* LibSearchPath; /* Library path */
|
||||
extern SearchPath* ObjSearchPath; /* Object file path */
|
||||
extern SearchPath* CfgSearchPath; /* Config file path */
|
||||
extern SearchPaths* LibSearchPath; /* Library path */
|
||||
extern SearchPaths* ObjSearchPath; /* Object file path */
|
||||
extern SearchPaths* CfgSearchPath; /* Config file path */
|
||||
|
||||
extern SearchPath* LibDefaultPath; /* Default Library path */
|
||||
extern SearchPath* ObjDefaultPath; /* Default Object file path */
|
||||
extern SearchPath* CfgDefaultPath; /* Default Config file path */
|
||||
extern SearchPaths* LibDefaultPath; /* Default Library path */
|
||||
extern SearchPaths* ObjDefaultPath; /* Default Object file path */
|
||||
extern SearchPaths* CfgDefaultPath; /* Default Config file path */
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user