mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-10-17 08:25:43 +00:00
pointer-to-member-functions fixlets, NULL may be (void *)0 on ancient
compilers which is not suitable here.
This commit is contained in:
parent
c686f5451c
commit
3aa78832fc
@ -27,8 +27,8 @@
|
|||||||
|
|
||||||
template< class PMF, class PF >
|
template< class PMF, class PF >
|
||||||
inline PF nv_mem_fun_of(PMF pmf) {
|
inline PF nv_mem_fun_of(PMF pmf) {
|
||||||
if (pmf == NULL)
|
if (pmf == 0)
|
||||||
return NULL;
|
return 0;
|
||||||
union { PMF pmf; uintptr p[2]; } x;
|
union { PMF pmf; uintptr p[2]; } x;
|
||||||
x.pmf = pmf;
|
x.pmf = pmf;
|
||||||
#if defined(__GXX_ABI_VERSION) /* GCC >= 3.0 */
|
#if defined(__GXX_ABI_VERSION) /* GCC >= 3.0 */
|
||||||
|
Loading…
Reference in New Issue
Block a user