TargetConditionals使用

#import "TargetConditionals.h"

 

gcc based compiler used on Mac OS X


for EX

#if !TARGET_IPHONE_SIMULATOR

    Float32 preferredBufferSize = 0.0232;

    if (checkError(AudioSessionSetProperty(kAudioSessionProperty_PreferredHardwareIOBufferDuration,

                                            sizeof(preferredBufferSize),

                                            &preferredBufferSize),

                    "Couldn't set the preferred buffer duration")) {

        

        // just warning

    }

#endif

 

posted @ 2014-07-02 11:05  dzldzl  阅读(615)  评论(0编辑  收藏  举报