13
0

'gtk2_ardour' - Harmonize usage of 'COMPILER_MINGW' and 'COMPILER_MSVC' where appropriate

This commit is contained in:
John Emmas 2013-10-14 17:07:45 +01:00
parent 8a4a86eff4
commit 404fb92533
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -25,7 +25,10 @@
#include <unistd.h>
#include <assert.h>
#ifndef COMPILER_MSVC
#include <dirent.h>
#endif
#ifdef PLATFORM_WINDOWS
#include <windows.h>