#ifdef __APPLE__
#include <dir/x.h>
#else
#include <other_dir/x.h>
#endif这意味着什么?
如果定义了__APPLE__则包含dir/x.h,否则包含other_dir/x.h。
它将定义__APPLE__, 包括dir/x.h,然后再包括other_dir/x.h
它将定义__APPLE__并包含dir/x.h
如果没有定义__APPLE__则包含dir/x.h,否则包含other_dir/x.h。
#ifdef __APPLE__
#include <dir/x.h>
#else
#include <other_dir/x.h>
#endif这意味着什么?
如果定义了__APPLE__则包含dir/x.h,否则包含other_dir/x.h。
它将定义__APPLE__, 包括dir/x.h,然后再包括other_dir/x.h
它将定义__APPLE__并包含dir/x.h
如果没有定义__APPLE__则包含dir/x.h,否则包含other_dir/x.h。