mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
'gtk2_ardour' - Harmonize usage of 'COMPILER_MINGW' and 'COMPILER_MSVC' where appropriate
This commit is contained in:
parent
8a4a86eff4
commit
404fb92533
2 changed files with 4 additions and 1 deletions
|
|
@ -35,7 +35,7 @@
|
||||||
/* POSIX guarantees casting between void* and function pointers, ISO C doesn't
|
/* 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
|
* 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))
|
#define POSIX_FUNC_PTR_CAST(type, object) *((type*) &(object))
|
||||||
#endif // _POSIX_VERSION
|
#endif // _POSIX_VERSION
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,10 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
#ifndef COMPILER_MSVC
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef PLATFORM_WINDOWS
|
#ifdef PLATFORM_WINDOWS
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue