Prevent NEAR and FAR macro definitions from leaking on Windows platforms
This commit is contained in:
		@@ -32,6 +32,10 @@
 | 
				
			|||||||
#include <process.h> //  _get_pid support
 | 
					#include <process.h> //  _get_pid support
 | 
				
			||||||
#include <windows.h>
 | 
					#include <windows.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// windows.h leaks NEAR and FAR macros, prevent those from leaking further
 | 
				
			||||||
 | 
					#undef NEAR
 | 
				
			||||||
 | 
					#undef FAR
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __MINGW32__
 | 
					#ifdef __MINGW32__
 | 
				
			||||||
#include <share.h>
 | 
					#include <share.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user