mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-12 01:30:03 +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 >
|
||||
inline PF nv_mem_fun_of(PMF pmf) {
|
||||
if (pmf == NULL)
|
||||
return NULL;
|
||||
if (pmf == 0)
|
||||
return 0;
|
||||
union { PMF pmf; uintptr p[2]; } x;
|
||||
x.pmf = pmf;
|
||||
#if defined(__GXX_ABI_VERSION) /* GCC >= 3.0 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user