• Misty De Meo's avatar
    Main: fix compilation on OS X using non-Apple compilers · 134cb6a0
    Misty De Meo authored
    Commit d42c0f1d added an OS X-specific
    method of calling mpd_main_after_fork(), which uses Grand Central
    Dispatch. Since this uses a block literal, it breaks compilation on
    compilers which don't support the block extension, e.g. non-Apple
    compilers. This affects users on older OS X releases with GCD (which
    depend on older Clang releases, or Apple GCCs, which don't support the
    C++11 features MPD needs); or which don't support GCD at all (10.5 and
    lower).
    
    This patch changes the #ifdef so that the non-GCD code is used
    as it was on OS X before this patch if blocks aren't available, via
    checking __BLOCKS__ macro.
    134cb6a0
Name
Last commit
Last update
android Loading commit data...
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
mpd.svg Loading commit data...
valgrind.suppressions Loading commit data...