projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0444c40
)
Also define casting macro when using mingw compiler
author
Tim Mayberry
<mojofunk@gmail.com>
Wed, 17 Jul 2013 06:47:29 +0000
(16:47 +1000)
committer
Tim Mayberry
<mojofunk@gmail.com>
Wed, 17 Jul 2013 06:47:29 +0000
(16:47 +1000)
gtk2_ardour/canvas-waveview.c
patch
|
blob
|
history
diff --git
a/gtk2_ardour/canvas-waveview.c
b/gtk2_ardour/canvas-waveview.c
index 2080b208d8a2eb6f839cc0657bf3c72e58d6a98c..51384c0fadd4234daa4abb1c569971c274bb60fa 100644
(file)
--- a/
gtk2_ardour/canvas-waveview.c
+++ b/
gtk2_ardour/canvas-waveview.c
@@
-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
*/
/* 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
def _POSIX_VERSION
+#if
defined(_POSIX_VERSION) || defined(__MINGW32__)
#define POSIX_FUNC_PTR_CAST(type, object) *((type*) &(object))
#endif // _POSIX_VERSION
#define POSIX_FUNC_PTR_CAST(type, object) *((type*) &(object))
#endif // _POSIX_VERSION