'gtk2_ardour' - Harmonize usage of 'COMPILER_MINGW' and 'COMPILER_MSVC' where appropriate
This commit is contained in:
parent
8a4a86eff4
commit
404fb92533
@ -35,7 +35,7 @@
|
||||
/* POSIX guarantees casting between void* and function pointers, ISO C doesn't
|
||||
* We can work around warnings by going one step deeper in our casts
|
||||
*/
|
||||
#if defined(_POSIX_VERSION) || defined(__MINGW32__)
|
||||
#if defined(_POSIX_VERSION) || defined(COMPILER_MINGW)
|
||||
#define POSIX_FUNC_PTR_CAST(type, object) *((type*) &(object))
|
||||
#endif // _POSIX_VERSION
|
||||
|
||||
|
@ -25,7 +25,10 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#ifndef COMPILER_MSVC
|
||||
#include <dirent.h>
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#include <windows.h>
|
||||
|
Loading…
Reference in New Issue
Block a user