- Timestamp:
- Oct 22, 2013 3:34:41 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/winphone/pjlib/src/pj/os_info.c
r4618 r4629 187 187 #elif defined(_MSC_VER) 188 188 { 189 OSVERSIONINFO ovi; 190 191 ovi.dwOSVersionInfoSize = sizeof(ovi); 192 193 #ifdef PJ_WIN32_WINPHONE 194 goto get_sdk_info; 195 #else 196 if (GetVersionEx(&ovi) == FALSE) 197 goto get_sdk_info; 198 #endif 199 200 si.os_ver = (ovi.dwMajorVersion << 24) | 201 (ovi.dwMinorVersion << 16); 202 #if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE 203 si.os_name = pj_str("wince"); 189 #ifdef PJ_WIN32_WINPHONE 190 si.os_name = pj_str("winphone"); 204 191 #else 205 si.os_name = pj_str("win32"); 192 OSVERSIONINFO ovi; 193 194 ovi.dwOSVersionInfoSize = sizeof(ovi); 195 if (GetVersionEx(&ovi) == FALSE) 196 goto get_sdk_info; 197 198 si.os_ver = (ovi.dwMajorVersion << 24) | 199 (ovi.dwMinorVersion << 16); 200 201 #if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE 202 si.os_name = pj_str("wince"); 203 #else 204 si.os_name = pj_str("win32"); 205 #endif 206 206 #endif 207 207 } … … 210 210 SYSTEM_INFO wsi; 211 211 212 #ifdef PJ_WIN32_WINPHONE 213 GetNativeSystemInfo(&wsi); 214 #else 212 215 GetSystemInfo(&wsi); 216 #endif 217 213 218 switch (wsi.wProcessorArchitecture) { 214 #if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE 219 #if (defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE) || \ 220 (defined(PJ_WIN32_WINPHONE) && PJ_WIN32_WINPHONE) 221 215 222 case PROCESSOR_ARCHITECTURE_ARM: 216 223 si.machine = pj_str("arm"); … … 229 236 si.machine = pj_str("i386"); 230 237 break; 231 #endif /* PJ_WIN32_WINCE */238 #endif /* PJ_WIN32_WINCE || PJ_WIN32_WINPHONE */ 232 239 } 240 #ifdef PJ_WIN32_WINPHONE 241 /* Avoid compile warning. */ 242 goto get_sdk_info; 243 #endif 233 244 } 234 245 #elif defined(PJ_SYMBIAN) && PJ_SYMBIAN != 0
Note: See TracChangeset
for help on using the changeset viewer.