[sldev] Build errors(in XCode 2.5) with indra.y.h
Argent Stonecutter
secret.argent at gmail.com
Mon Oct 1 13:23:14 PDT 2007
On 01-Oct-2007, at 15:03, Michael Miller wrote:
> Can someone write the n-way ifdef statement and post it here? Nothing
> I've tried so far works.
// This stuff can go in some include file with other os-specific code.
// I removed the test for the compiler version, the availability
macros predate any version of OS X that SL is going to run on.
// To use the XCODE_VERSION_ACTUAL the project will need to be
modified to expose that constant as a macro.
#ifdef __APPLE_CC__
# include <AvailabilityMacros.h>
# ifdef MAC_OS_X_VERSION_10_5 /* Not defined for pre-leopard
versions */
# define YACC_GENERATES_HPP 1
# endif
# ifdef XCODE_VERSION_ACTUAL
# if XCODE_VERSION_ACTUAL >= 0250 /* or 0300 */
# define YACC_GENERATES_HPP 1
# endif
# endif
#endif
#ifdef LL_WINDOWS
# include "ytab.h"
#else
# ifdef YACC_GENERATES_HPP
# include "indra.y.hpp"
# else
# include "indra.y.h"
# endif
#endif
More information about the SLDev
mailing list