[英]PreProcessor constant for Windows Phone 8.1
I have received a project from a partner and I tried to compile and deploy it in my device. 我已经从合作伙伴那里收到一个项目,我试图将其编译并部署到我的设备中。 However the build fails because a const value seems undefined. 但是,构建失败,因为const值似乎未定义。
#if !defined(MXD_OS_WINDOWS_PHONE)
uResult = WaitForMultipleObjects(uCount, ahWatch, FALSE, INFINITE);
#else
uResult = WaitForMultipleObjectsEx(uCount, ahWatch, false, INFINITE, true);
#endif
When I search my workspace I can find a value that the MXD_OS_WINDOWS_PHONE is being defined. 当我搜索工作空间时,我可以找到一个正在定义MXD_OS_WINDOWS_PHONE的值。 For example there is no line 例如没有线
#define MXD_OS_WINDOWS_PHONE 1
Is there any way to define the value in a project file? 有什么方法可以在项目文件中定义值? Is this mandatory the value to be defined? 这是必须定义的值吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.