[{"data":1,"prerenderedAt":3832},["ShallowReactive",2],{"post-\u002Fblog\u002F2023\u002F2023-11-05-platform-macros":3},{"id":4,"title":5,"body":6,"description":3818,"draft":3819,"enableComment":76,"extension":3820,"image":3821,"meta":3822,"navigation":76,"onday":3823,"path":3824,"seo":3825,"stem":3826,"summary":3827,"tags":3828,"__hash__":3831},"blog\u002Fblog\u002F2023\u002F2023-11-05-platform-macros.md","C\u002FC++ Cross-Platform Compile-Macros",{"type":7,"value":8,"toc":3816},"minimark",[9,18,21,32,35,145,148,151,156,165,176,232,252,287,296,341,348,451,460,479,488,523,532,551,559,578,590,599,620,629,691,700,774,778,823,832,853,862,883,892,913,922,958,967,987,996,1025,1034,1053,1062,1083,1092,1170,1174,1249,1270,1301,1313,1337,1357,1378,1387,1406,1415,1457,1466,1487,1496,1515,1524,1548,1557,1583,1615,1658,1667,1688,1697,1745,1754,1787,1796,1815,1824,1845,1854,1880,1889,1931,1940,2019,2023,2098,2107,2126,2135,2156,2165,2215,2219,2247,2256,2299,2308,2334,2343,2362,2371,2390,2399,2471,2475,2495,2504,2523,2532,2573,2582,2628,2646,2673,2682,2723,2739,2793,2802,2823,2832,2853,2862,2890,2899,2940,2949,2986,2995,3018,3027,3055,3067,3093,3102,3121,3130,3180,3184,3219,3228,3332,3336,3363,3372,3451,3460,3526,3530,3596,3681,3690,3729,3733,3754,3763,3812],[10,11,12,13,17],"p",{},"When we compile some cross -platform programs, we will inevitably encounter _win32 , ",[14,15,16],"strong",{},"Linux"," What are the macroscopic macro of the compiler environment.There are many differences between _win32 and win32 before.But there is a list here, making a memo.",[10,19,20],{},"For example, a code that can only be compiled under the Unix-Like platform in a set.If you compile the wrong error on the non-Unix-Like platform, then my code can add a macro to check whether it is a UNIX environment.If it is normally compiled, the error is thrown directly.",[22,23,29],"pre",{"className":24,"code":26,"language":27,"meta":28},[25],"language-text","#ifndef __unix__\n#error This program should be complied and work in UNIX-LIKE platform.\n#endif\n","text","",[30,31,26],"code",{"__ignoreMap":28},[10,33,34],{},"The complete code is as follows:",[22,36,40],{"className":37,"code":38,"language":39,"meta":28,"style":28},"language-c shiki shiki-themes github-dark","#ifndef __unix__\n#error This program should be complied and work in UNIX-LIKE platform.\n#endif\n\n#include \u003Cstdio.h>\n\nint main()\n{\n    printf(\"this is unix-like platform\");\n    return 0;\n}\n","c",[30,41,42,55,65,71,78,87,92,105,111,126,139],{"__ignoreMap":28},[43,44,47,51],"span",{"class":45,"line":46},"line",1,[43,48,50],{"class":49},"snl16","#ifndef",[43,52,54],{"class":53},"svObZ"," __unix__\n",[43,56,58,61],{"class":45,"line":57},2,[43,59,60],{"class":49},"#error",[43,62,64],{"class":63},"sU2Wk"," This program should be complied and work in UNIX-LIKE platform.\n",[43,66,68],{"class":45,"line":67},3,[43,69,70],{"class":49},"#endif\n",[43,72,74],{"class":45,"line":73},4,[43,75,77],{"emptyLinePlaceholder":76},true,"\n",[43,79,81,84],{"class":45,"line":80},5,[43,82,83],{"class":49},"#include",[43,85,86],{"class":63}," \u003Cstdio.h>\n",[43,88,90],{"class":45,"line":89},6,[43,91,77],{"emptyLinePlaceholder":76},[43,93,95,98,101],{"class":45,"line":94},7,[43,96,97],{"class":49},"int",[43,99,100],{"class":53}," main",[43,102,104],{"class":103},"s95oV","()\n",[43,106,108],{"class":45,"line":107},8,[43,109,110],{"class":103},"{\n",[43,112,114,117,120,123],{"class":45,"line":113},9,[43,115,116],{"class":53},"    printf",[43,118,119],{"class":103},"(",[43,121,122],{"class":63},"\"this is unix-like platform\"",[43,124,125],{"class":103},");\n",[43,127,129,132,136],{"class":45,"line":128},10,[43,130,131],{"class":49},"    return",[43,133,135],{"class":134},"sDLfK"," 0",[43,137,138],{"class":103},";\n",[43,140,142],{"class":45,"line":141},11,[43,143,144],{"class":103},"}\n",[10,146,147],{},"This code can be compiled normally in the Mac OS and Linux environments, and an error will be reported under Windows.",[149,150],"hr",{},[10,152,153],{},[14,154,155],{},"Below is a macro list of a detection environment.",[10,157,158,159,164],{},"Please send updates\u002Fcorrections to ",[160,161,163],"a",{"href":162},"mailto:predef-contribute@lists.sourceforge.net","predef-contribute",".",[10,166,167],{},[14,168,169],{},[160,170,175],{"rel":171,"href":174},[172,173],"nofollow","noreferrer","http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FAIX_operating_system","AIX",[177,178,179,195],"table",{},[180,181,182],"thead",{},[183,184,185,189,192],"tr",{},[186,187,188],"th",{},"Type",[186,190,191],{},"Macro",[186,193,194],{},"Description",[196,197,198,209,220],"tbody",{},[183,199,200,204,207],{},[201,202,203],"td",{},"Identification",[201,205,206],{},"_AIX",[201,208],{},[183,210,211,214,217],{},[201,212,213],{},"Version",[201,215,216],{},"_AIX'VR'",[201,218,219],{},"V = VersionR = Revision",[183,221,222,224,229],{},[201,223,203],{},[201,225,226],{},[14,227,228],{},"TOS_AIX",[201,230,231],{},"Defined by xlC",[10,233,234,237,240,241,243,244,247,248,251],{},[14,235,236],{},"Example",[238,239],"br",{},"\nIf ",[30,242,206],{}," is defined, then the following macros can be used to determine the version. Notice that the macros indicates the mentioned version or higher. For example, if ",[30,245,246],{},"_AIX43"," is defined, then ",[30,249,250],{},"_AIX41"," will also be defined.",[177,253,254,263],{},[180,255,256],{},[183,257,258,261],{},[186,259,260],{},"AIX Version",[186,262,191],{},[196,264,265,273,280],{},[183,266,267,270],{},[201,268,269],{},"3.2.x",[201,271,272],{},"_AIX3_AIX32",[183,274,275,278],{},[201,276,277],{},"4.1",[201,279,250],{},[183,281,282,285],{},[201,283,284],{},"4.3",[201,286,246],{},[10,288,289],{},[14,290,291],{},[160,292,295],{"rel":293,"href":294},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FAndroid_%28operating_system%29","Android",[177,297,298,311],{},[180,299,300],{},[183,301,302,304,306,309],{},[186,303,188],{},[186,305,191],{},[186,307,308],{},"Format",[186,310,194],{},[196,312,313,326],{},[183,314,315,317,322,324],{},[201,316,203],{},[201,318,319],{},[14,320,321],{},"ANDROID",[201,323],{},[201,325],{},[183,327,328,330,335,338],{},[201,329,213],{},[201,331,332],{},[14,333,334],{},"ANDROID_API",[201,336,337],{},"V",[201,339,340],{},"V = API VersionMust be included from \u003Candroid\u002Fapi-level.h>",[10,342,343,344,346],{},"Notice that Android is based on Linux, and that the Linux macros also are defined for Android.",[238,345],{},[14,347,236],{},[177,349,350,361],{},[180,351,352],{},[183,353,354,357],{},[186,355,356],{},"Android Version",[186,358,359],{},[14,360,334],{},[196,362,363,371,379,387,395,403,411,419,427,435,443],{},[183,364,365,368],{},[201,366,367],{},"1.0",[201,369,370],{},"1",[183,372,373,376],{},[201,374,375],{},"1.1",[201,377,378],{},"2",[183,380,381,384],{},[201,382,383],{},"1.5",[201,385,386],{},"3",[183,388,389,392],{},[201,390,391],{},"1.6",[201,393,394],{},"4",[183,396,397,400],{},[201,398,399],{},"2.0",[201,401,402],{},"5",[183,404,405,408],{},[201,406,407],{},"2.0.1",[201,409,410],{},"6",[183,412,413,416],{},[201,414,415],{},"2.1",[201,417,418],{},"7",[183,420,421,424],{},[201,422,423],{},"2.2",[201,425,426],{},"8",[183,428,429,432],{},[201,430,431],{},"2.3",[201,433,434],{},"9",[183,436,437,440],{},[201,438,439],{},"2.3.3",[201,441,442],{},"10",[183,444,445,448],{},[201,446,447],{},"3.0",[201,449,450],{},"11",[10,452,453],{},[14,454,455],{},[160,456,459],{"rel":457,"href":458},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FUTS_%28Mainframe_UNIX%29","Amdahl UTS",[177,461,462,470],{},[180,463,464],{},[183,465,466,468],{},[186,467,188],{},[186,469,191],{},[196,471,472],{},[183,473,474,476],{},[201,475,203],{},[201,477,478],{},"UTS",[10,480,481],{},[14,482,483],{},[160,484,487],{"rel":485,"href":486},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FAmigaOS","AmigaOS",[177,489,490,500],{},[180,491,492],{},[183,493,494,496,498],{},[186,495,188],{},[186,497,191],{},[186,499,194],{},[196,501,502,511],{},[183,503,504,506,509],{},[201,505,203],{},[201,507,508],{},"AMIGA",[201,510],{},[183,512,513,515,520],{},[201,514,203],{},[201,516,517],{},[14,518,519],{},"amigaos",[201,521,522],{},"Defined by GNU C",[10,524,525],{},[14,526,527],{},[160,528,531],{"rel":529,"href":530},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FDomain\u002FOS","Apollo AEGIS",[177,533,534,542],{},[180,535,536],{},[183,537,538,540],{},[186,539,188],{},[186,541,191],{},[196,543,544],{},[183,545,546,548],{},[201,547,203],{},[201,549,550],{},"aegis",[10,552,553],{},[14,554,555],{},[160,556,558],{"rel":557,"href":530},[172,173],"Apollo Domain\u002FOS",[177,560,561,569],{},[180,562,563],{},[183,564,565,567],{},[186,566,188],{},[186,568,191],{},[196,570,571],{},[183,572,573,575],{},[201,574,203],{},[201,576,577],{},"apollo",[10,579,580,587,589],{},[14,581,582],{},[160,583,586],{"rel":584,"href":585},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FBada_%28operating_system%29","Bada",[238,588],{},"\nBased on Nucleus OS.",[10,591,592],{},[14,593,594],{},[160,595,598],{"rel":596,"href":597},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FBeOS","BeOS",[177,600,601,609],{},[180,602,603],{},[183,604,605,607],{},[186,606,188],{},[186,608,191],{},[196,610,611],{},[183,612,613,615],{},[201,614,203],{},[201,616,617],{},[14,618,619],{},"BEOS",[10,621,622],{},[14,623,624],{},[160,625,628],{"rel":626,"href":627},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FBluegene","Blue Gene",[177,630,631,641],{},[180,632,633],{},[183,634,635,637,639],{},[186,636,188],{},[186,638,191],{},[186,640,194],{},[196,642,643,655,667,679],{},[183,644,645,647,652],{},[201,646,203],{},[201,648,649],{},[14,650,651],{},"bg",[201,653,654],{},"All Blue Gene systemsDefined by XL C\u002FC++ and GNU C",[183,656,657,659,664],{},[201,658,213],{},[201,660,661],{},[14,662,663],{},"bgq",[201,665,666],{},"Blue Gene\u002FQDefined for XL C\u002FC++ and GNU C",[183,668,669,671,676],{},[201,670,203],{},[201,672,673],{},[14,674,675],{},"THW_BLUEGENE",[201,677,678],{},"All Blue Gene systemsDefined by XL C\u002FC++",[183,680,681,683,688],{},[201,682,213],{},[201,684,685],{},[14,686,687],{},"TOS_BGQ",[201,689,690],{},"Blue Gene\u002FQDefined by XL C\u002FC++",[10,692,693],{},[14,694,695],{},[160,696,699],{"rel":697,"href":698},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FBsd","BSD Environment",[177,701,702,714],{},[180,703,704],{},[183,705,706,708,710,712],{},[186,707,188],{},[186,709,191],{},[186,711,308],{},[186,713,194],{},[196,715,716,737,750,762],{},[183,717,718,720,733,735],{},[201,719,203],{},[201,721,722,725,726,729,730],{},[14,723,724],{},"FreeBSD__","NetBSD_",[14,727,728],{},"_OpenBSD__","bsdi_",[14,731,732],{},"_DragonFly",[201,734],{},[201,736],{},[183,738,739,741,744,747],{},[201,740,213],{},[201,742,743],{},"BSD",[201,745,746],{},"YYYYMM",[201,748,749],{},"YYYY = YearMM = MonthMust be included from \u003Csys\u002Fparam.h>",[183,751,752,754,757,759],{},[201,753,213],{},[201,755,756],{},"BSD4_2BSD4_3BSD4_4",[201,758],{},[201,760,761],{},"Must be included from \u003Csys\u002Fparam.h>",[183,763,764,766,769,771],{},[201,765,203],{},[201,767,768],{},"_SYSTYPE_BSD",[201,770],{},[201,772,773],{},"Defined by DEC C",[10,775,776],{},[14,777,236],{},[177,779,780,790],{},[180,781,782],{},[183,783,784,786,788],{},[186,785,213],{},[186,787,743],{},[186,789,191],{},[196,791,792,802,813],{},[183,793,794,797,800],{},[201,795,796],{},"4.3 Net2",[201,798,799],{},"199103",[201,801],{},[183,803,804,807,810],{},[201,805,806],{},"4.4",[201,808,809],{},"199306",[201,811,812],{},"BSD4_4",[183,814,815,818,821],{},[201,816,817],{},"4.4BSD-Lite2",[201,819,820],{},"199506",[201,822],{},[10,824,825],{},[14,826,827],{},[160,828,831],{"rel":829,"href":830},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FBSD\u002FOS","BSD\u002FOS",[177,833,834,842],{},[180,835,836],{},[183,837,838,840],{},[186,839,188],{},[186,841,191],{},[196,843,844],{},[183,845,846,848],{},[201,847,203],{},[201,849,850],{},[14,851,852],{},"bsdi",[10,854,855],{},[14,856,857],{},[160,858,861],{"rel":859,"href":860},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FConvex_Computer","ConvexOS",[177,863,864,872],{},[180,865,866],{},[183,867,868,870],{},[186,869,188],{},[186,871,191],{},[196,873,874],{},[183,875,876,878],{},[201,877,203],{},[201,879,880],{},[14,881,882],{},"convex",[10,884,885],{},[14,886,887],{},[160,888,891],{"rel":889,"href":890},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FCygwin","Cygwin Environment",[177,893,894,902],{},[180,895,896],{},[183,897,898,900],{},[186,899,188],{},[186,901,191],{},[196,903,904],{},[183,905,906,908],{},[201,907,203],{},[201,909,910],{},[14,911,912],{},"CYGWIN",[10,914,915],{},[14,916,917],{},[160,918,921],{"rel":919,"href":920},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FData_General","DG\u002FUX",[177,923,924,932],{},[180,925,926],{},[183,927,928,930],{},[186,929,188],{},[186,931,191],{},[196,933,934,941,949],{},[183,935,936,938],{},[201,937,203],{},[201,939,940],{},"DGUX",[183,942,943,945],{},[201,944,203],{},[201,946,947],{},[14,948,940],{},[183,950,951,953],{},[201,952,203],{},[201,954,955],{},[14,956,957],{},"dgux",[10,959,960],{},[14,961,962],{},[160,963,966],{"rel":964,"href":965},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FDragonFly_BSD","DragonFly",[177,968,969,977],{},[180,970,971],{},[183,972,973,975],{},[186,974,188],{},[186,976,191],{},[196,978,979],{},[183,980,981,983],{},[201,982,203],{},[201,984,985],{},[14,986,966],{},[10,988,989],{},[14,990,991],{},[160,992,995],{"rel":993,"href":994},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FDynix","DYNIX\u002Fptx",[177,997,998,1006],{},[180,999,1000],{},[183,1001,1002,1004],{},[186,1003,188],{},[186,1005,191],{},[196,1007,1008,1018],{},[183,1009,1010,1012],{},[201,1011,203],{},[201,1013,1014],{},[1015,1016,1017],"em",{},"SEQUENT",[183,1019,1020,1022],{},[201,1021,203],{},[201,1023,1024],{},"sequent",[10,1026,1027],{},[14,1028,1029],{},[160,1030,1033],{"rel":1031,"href":1032},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FECos","eCos",[177,1035,1036,1044],{},[180,1037,1038],{},[183,1039,1040,1042],{},[186,1041,188],{},[186,1043,191],{},[196,1045,1046],{},[183,1047,1048,1050],{},[201,1049,203],{},[201,1051,1052],{},"__ECOS",[10,1054,1055],{},[14,1056,1057],{},[160,1058,1061],{"rel":1059,"href":1060},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FEMX_%28programming_environment%29","EMX Environment",[177,1063,1064,1072],{},[180,1065,1066],{},[183,1067,1068,1070],{},[186,1069,188],{},[186,1071,191],{},[196,1073,1074],{},[183,1075,1076,1078],{},[201,1077,203],{},[201,1079,1080],{},[14,1081,1082],{},"EMX",[10,1084,1085],{},[14,1086,1087],{},[160,1088,1091],{"rel":1089,"href":1090},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FFreebsd","FreeBSD",[177,1093,1094,1106],{},[180,1095,1096],{},[183,1097,1098,1100,1102,1104],{},[186,1099,188],{},[186,1101,191],{},[186,1103,308],{},[186,1105,194],{},[196,1107,1108,1120,1134,1144,1157],{},[183,1109,1110,1112,1116,1118],{},[201,1111,203],{},[201,1113,1114],{},[14,1115,1091],{},[201,1117],{},[201,1119],{},[183,1121,1122,1124,1129,1131],{},[201,1123,203],{},[201,1125,1126],{},[14,1127,1128],{},"FreeBSD_kernel",[201,1130],{},[201,1132,1133],{},"From FreeBSD 8.3, 9.1, and 10.0.1",[183,1135,1136,1138,1140,1142],{},[201,1137,213],{},[201,1139,743],{},[201,1141],{},[201,1143],{},[183,1145,1146,1148,1152,1154],{},[201,1147,213],{},[201,1149,1150],{},[14,1151,1091],{},[201,1153,337],{},[201,1155,1156],{},"V = Version",[183,1158,1159,1161,1164,1167],{},[201,1160,213],{},[201,1162,1163],{},"__FreeBSD_version",[201,1165,1166],{},"?",[201,1168,1169],{},"Must be included from osreldate.h",[10,1171,1172],{},[14,1173,236],{},[177,1175,1176,1188],{},[180,1177,1178],{},[183,1179,1180,1182,1186],{},[186,1181,1091],{},[186,1183,1184],{},[14,1185,1091],{},[186,1187,1163],{},[196,1189,1190,1199,1209,1219,1229,1239],{},[183,1191,1192,1195,1197],{},[201,1193,1194],{},"1.x",[201,1196,370],{},[201,1198],{},[183,1200,1201,1204,1206],{},[201,1202,1203],{},"2.0-RELEASE",[201,1205,378],{},[201,1207,1208],{},"119411",[183,1210,1211,1214,1216],{},[201,1212,1213],{},"2.2-RELEASE",[201,1215,378],{},[201,1217,1218],{},"220000",[183,1220,1221,1224,1226],{},[201,1222,1223],{},"3.0-RELEASE",[201,1225,386],{},[201,1227,1228],{},"300005",[183,1230,1231,1234,1236],{},[201,1232,1233],{},"4.0-RELEASE",[201,1235,394],{},[201,1237,1238],{},"400017",[183,1240,1241,1244,1246],{},[201,1242,1243],{},"4.5-RELEASE",[201,1245,394],{},[201,1247,1248],{},"450000",[10,1250,1251,1252,164,1257,1259,1267,1269],{},"For more information see the ",[160,1253,1256],{"rel":1254,"href":1255},[172,173],"http:\u002F\u002Fwww.freebsd.org\u002Fdoc\u002Fen_US.ISO8859-1\u002Fbooks\u002Fporters-handbook\u002Ffreebsd-versions.html","FreeBSD porters handbook",[238,1258],{},[14,1260,1261,1262],{},"GNU aka ",[160,1263,1266],{"rel":1264,"href":1265},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FGNU\u002FHurd","GNU\u002FHurd",[238,1268],{},"\nThe official name of this operating system is GNU. Hurd is the kernel in the GNU operating system. It is often listed as GNU\u002FHurd since there is also GNU\u002FLinux and GNU\u002FkFreeBSD, which are most of the GNU operating system with the Linux and FreeBSD kernels respectively.",[177,1271,1272,1280],{},[180,1273,1274],{},[183,1275,1276,1278],{},[186,1277,188],{},[186,1279,191],{},[196,1281,1282,1292],{},[183,1283,1284,1286],{},[201,1285,203],{},[201,1287,1288,1291],{},[14,1289,1290],{},"GNU"," 1",[183,1293,1294,1296],{},[201,1295,203],{},[201,1297,1298,1291],{},[14,1299,1300],{},"gnu_hurd",[10,1302,1303,1310,1312],{},[14,1304,1305],{},[160,1306,1309],{"rel":1307,"href":1308},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FGNU\u002FkFreeBSD","GNU\u002FkFreeBSD",[238,1311],{},"\nGNU\u002FkFreeBSD is one of the Debian distros that is based on the FreeBSD kernel rather than the Linux or Hurd kernels.",[177,1314,1315,1323],{},[180,1316,1317],{},[183,1318,1319,1321],{},[186,1320,188],{},[186,1322,191],{},[196,1324,1325],{},[183,1326,1327,1329],{},[201,1328,203],{},[201,1330,1331,1333,1334],{},[14,1332,1128],{}," && ",[14,1335,1336],{},"GLIBC",[10,1338,1339,1340,1343,1344,1347,1348,1350],{},"Notice that FreeBSD also defines ",[30,1341,1342],{},"__FreeBSD_kernel__"," so the ",[30,1345,1346],{},"__GLIBC__"," macro must be checked to distinguish it.",[238,1349],{},[14,1351,1352],{},[160,1353,1356],{"rel":1354,"href":1355},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FGNU\u002FLinux","GNU\u002FLinux",[177,1358,1359,1367],{},[180,1360,1361],{},[183,1362,1363,1365],{},[186,1364,188],{},[186,1366,191],{},[196,1368,1369],{},[183,1370,1371,1373],{},[201,1372,203],{},[201,1374,1375],{},[14,1376,1377],{},"gnu_linux",[10,1379,1380],{},[14,1381,1382],{},[160,1383,1386],{"rel":1384,"href":1385},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FHI-UX","HI-UX MPP",[177,1388,1389,1397],{},[180,1390,1391],{},[183,1392,1393,1395],{},[186,1394,188],{},[186,1396,191],{},[196,1398,1399],{},[183,1400,1401,1403],{},[201,1402,203],{},[201,1404,1405],{},"__hiuxmpp",[10,1407,1408],{},[14,1409,1410],{},[160,1411,1414],{"rel":1412,"href":1413},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FHP-UX","HP-UX",[177,1416,1417,1427],{},[180,1418,1419],{},[183,1420,1421,1423,1425],{},[186,1422,188],{},[186,1424,191],{},[186,1426,194],{},[196,1428,1429,1439,1448],{},[183,1430,1431,1433,1436],{},[201,1432,203],{},[201,1434,1435],{},"_hpux",[201,1437,1438],{},"Defined by HP UPC",[183,1440,1441,1443,1446],{},[201,1442,203],{},[201,1444,1445],{},"hpux",[201,1447],{},[183,1449,1450,1452,1455],{},[201,1451,203],{},[201,1453,1454],{},"__hpux",[201,1456],{},[10,1458,1459],{},[14,1460,1461],{},[160,1462,1465],{"rel":1463,"href":1464},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FIBM_i","IBM OS\u002F400",[177,1467,1468,1476],{},[180,1469,1470],{},[183,1471,1472,1474],{},[186,1473,188],{},[186,1475,191],{},[196,1477,1478],{},[183,1479,1480,1482],{},[201,1481,203],{},[201,1483,1484],{},[14,1485,1486],{},"OS400",[10,1488,1489],{},[14,1490,1491],{},[160,1492,1495],{"rel":1493,"href":1494},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FIntegrity_%28operating_system%29","INTEGRITY",[177,1497,1498,1506],{},[180,1499,1500],{},[183,1501,1502,1504],{},[186,1503,188],{},[186,1505,191],{},[196,1507,1508],{},[183,1509,1510,1512],{},[201,1511,203],{},[201,1513,1514],{},"__INTEGRITY",[10,1516,1517],{},[14,1518,1519],{},[160,1520,1523],{"rel":1521,"href":1522},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FInterix","Interix Environment",[177,1525,1526,1536],{},[180,1527,1528],{},[183,1529,1530,1532,1534],{},[186,1531,188],{},[186,1533,191],{},[186,1535,194],{},[196,1537,1538],{},[183,1539,1540,1542,1545],{},[201,1541,203],{},[201,1543,1544],{},"__INTERIX",[201,1546,1547],{},"Defined by GNU C and Visual Studio",[10,1549,1550],{},[14,1551,1552],{},[160,1553,1556],{"rel":1554,"href":1555},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FIrix","IRIX",[177,1558,1559,1567],{},[180,1560,1561],{},[183,1562,1563,1565],{},[186,1564,188],{},[186,1566,191],{},[196,1568,1569,1576],{},[183,1570,1571,1573],{},[201,1572,203],{},[201,1574,1575],{},"sgi",[183,1577,1578,1580],{},[201,1579,203],{},[201,1581,1582],{},"__sgi",[10,1584,1585,1592,1594,1595,1598,1599,1603,1604,1609,1610],{},[14,1586,1587],{},[160,1588,1591],{"rel":1589,"href":1590},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FLinux_kernel","Linux kernel",[238,1593],{},"\nSystems based on the Linux kernel define these macros. There are two major Linux-based operating systems: ",[160,1596,1356],{"rel":1597,"href":1355},[172,173]," and",[160,1600,295],{"rel":1601,"href":1602},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FAndroid",", and numerous others like ",[160,1605,1608],{"rel":1606,"href":1607},[172,173],"http:\u002F\u002Fwww.angstrom-distribution.org\u002F","Ångström"," or ",[160,1611,1614],{"rel":1612,"href":1613},[172,173],"http:\u002F\u002Fwww.openembedded.org\u002F","OpenEmbedded",[177,1616,1617,1627],{},[180,1618,1619],{},[183,1620,1621,1623,1625],{},[186,1622,188],{},[186,1624,191],{},[186,1626,194],{},[196,1628,1629,1640,1649],{},[183,1630,1631,1633,1638],{},[201,1632,203],{},[201,1634,1635],{},[14,1636,1637],{},"linux",[201,1639,370],{},[183,1641,1642,1644,1646],{},[201,1643,203],{},[201,1645,1637],{},[201,1647,1648],{},"Obsolete (not POSIX compliant)",[183,1650,1651,1653,1656],{},[201,1652,203],{},[201,1654,1655],{},"__linux",[201,1657,1648],{},[10,1659,1660],{},[14,1661,1662],{},[160,1663,1666],{"rel":1664,"href":1665},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FLynxOS","LynxOS",[177,1668,1669,1677],{},[180,1670,1671],{},[183,1672,1673,1675],{},[186,1674,188],{},[186,1676,191],{},[196,1678,1679],{},[183,1680,1681,1683],{},[201,1682,203],{},[201,1684,1685],{},[14,1686,1687],{},"Lynx",[10,1689,1690],{},[14,1691,1692],{},[160,1693,1696],{"rel":1694,"href":1695},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FMac_OS","MacOS",[177,1698,1699,1709],{},[180,1700,1701],{},[183,1702,1703,1705,1707],{},[186,1704,188],{},[186,1706,191],{},[186,1708,194],{},[196,1710,1711,1721,1730],{},[183,1712,1713,1715,1718],{},[201,1714,203],{},[201,1716,1717],{},"macintosh",[201,1719,1720],{},"Mac OS 9",[183,1722,1723,1725,1728],{},[201,1724,203],{},[201,1726,1727],{},"Macintosh",[201,1729,1720],{},[183,1731,1732,1734,1742],{},[201,1733,203],{},[201,1735,1736,1333,1739],{},[14,1737,1738],{},"APPLE",[14,1740,1741],{},"MACH",[201,1743,1744],{},"Mac OS XDefined by GNU C and Intel C++",[10,1746,1747],{},[14,1748,1749],{},[160,1750,1753],{"rel":1751,"href":1752},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FOS-9","Microware OS-9",[177,1755,1756,1766],{},[180,1757,1758],{},[183,1759,1760,1762,1764],{},[186,1761,188],{},[186,1763,191],{},[186,1765,194],{},[196,1767,1768,1778],{},[183,1769,1770,1772,1775],{},[201,1771,203],{},[201,1773,1774],{},"__OS9000",[201,1776,1777],{},"Defined by Ultimate C\u002FC++",[183,1779,1780,1782,1785],{},[201,1781,203],{},[201,1783,1784],{},"_OSK",[201,1786,1777],{},[10,1788,1789],{},[14,1790,1791],{},[160,1792,1795],{"rel":1793,"href":1794},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FMinix","MINIX",[177,1797,1798,1806],{},[180,1799,1800],{},[183,1801,1802,1804],{},[186,1803,188],{},[186,1805,191],{},[196,1807,1808],{},[183,1809,1810,1812],{},[201,1811,203],{},[201,1813,1814],{},"__minix",[10,1816,1817],{},[14,1818,1819],{},[160,1820,1823],{"rel":1821,"href":1822},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FMorphos","MorphOS",[177,1825,1826,1834],{},[180,1827,1828],{},[183,1829,1830,1832],{},[186,1831,188],{},[186,1833,191],{},[196,1835,1836],{},[183,1837,1838,1840],{},[201,1839,203],{},[201,1841,1842],{},[14,1843,1844],{},"MORPHOS",[10,1846,1847],{},[14,1848,1849],{},[160,1850,1853],{"rel":1851,"href":1852},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FMPE","MPE\u002FiX",[177,1855,1856,1864],{},[180,1857,1858],{},[183,1859,1860,1862],{},[186,1861,188],{},[186,1863,191],{},[196,1865,1866,1873],{},[183,1867,1868,1870],{},[201,1869,203],{},[201,1871,1872],{},"mpeix",[183,1874,1875,1877],{},[201,1876,203],{},[201,1878,1879],{},"__mpexl",[10,1881,1882],{},[14,1883,1884],{},[160,1885,1888],{"rel":1886,"href":1887},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FMS-DOS","MSDOS",[177,1890,1891,1899],{},[180,1892,1893],{},[183,1894,1895,1897],{},[186,1896,188],{},[186,1898,191],{},[196,1900,1901,1907,1915,1922],{},[183,1902,1903,1905],{},[201,1904,203],{},[201,1906,1888],{},[183,1908,1909,1911],{},[201,1910,203],{},[201,1912,1913],{},[14,1914,1888],{},[183,1916,1917,1919],{},[201,1918,203],{},[201,1920,1921],{},"_MSDOS",[183,1923,1924,1926],{},[201,1925,203],{},[201,1927,1928],{},[14,1929,1930],{},"DOS",[10,1932,1933],{},[14,1934,1935],{},[160,1936,1939],{"rel":1937,"href":1938},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FNetbsd","NetBSD",[177,1941,1942,1954],{},[180,1943,1944],{},[183,1945,1946,1948,1950,1952],{},[186,1947,188],{},[186,1949,191],{},[186,1951,308],{},[186,1953,194],{},[196,1955,1956,1968,1978,1990,2005],{},[183,1957,1958,1960,1964,1966],{},[201,1959,203],{},[201,1961,1962],{},[14,1963,1939],{},[201,1965],{},[201,1967],{},[183,1969,1970,1972,1974,1976],{},[201,1971,213],{},[201,1973,743],{},[201,1975],{},[201,1977],{},[183,1979,1980,1982,1985,1987],{},[201,1981,213],{},[201,1983,1984],{},"NetBSD'V'_'R'",[201,1986],{},[201,1988,1989],{},"V = VersionR = RevisionMust be included from \u003Csys\u002Fparam.h>",[183,1991,1992,1994,1999,2002],{},[201,1993,213],{},[201,1995,1996],{},[14,1997,1998],{},"NetBSD_Version",[201,2000,2001],{},"VVRRAAPP00",[201,2003,2004],{},"VV = VersionRR = RevisionAA = ReleasePP = PatchFrom NetBSD 1.2D (?) until NetBSD 2.0HMust be included from \u003Csys\u002Fparam.h>",[183,2006,2007,2009,2013,2016],{},[201,2008,213],{},[201,2010,2011],{},[14,2012,1998],{},[201,2014,2015],{},"VVRR00PP00",[201,2017,2018],{},"VV = VersionRR = RevisionPP = PatchFrom NetBSD 2.99.9Must be included from \u003Csys\u002Fparam.h>",[10,2020,2021],{},[14,2022,236],{},[177,2024,2025,2037],{},[180,2026,2027],{},[183,2028,2029,2031,2035],{},[186,2030,1939],{},[186,2032,2033],{},[14,2034,1998],{},[186,2036,191],{},[196,2038,2039,2049,2059,2068,2078,2088],{},[183,2040,2041,2044,2046],{},[201,2042,2043],{},"0.8",[201,2045],{},[201,2047,2048],{},"NetBSD0_8",[183,2050,2051,2054,2056],{},[201,2052,2053],{},"0.9",[201,2055],{},[201,2057,2058],{},"NetBSD0_9",[183,2060,2061,2063,2065],{},[201,2062,367],{},[201,2064],{},[201,2066,2067],{},"NetBSD1_0 = 1",[183,2069,2070,2073,2075],{},[201,2071,2072],{},"1.0A",[201,2074],{},[201,2076,2077],{},"NetBSD1_0 = 2",[183,2079,2080,2083,2086],{},[201,2081,2082],{},"1.2D",[201,2084,2085],{},"102040000",[201,2087],{},[183,2089,2090,2093,2096],{},[201,2091,2092],{},"1.2.1",[201,2094,2095],{},"102000100",[201,2097],{},[10,2099,2100],{},[14,2101,2102],{},[160,2103,2106],{"rel":2104,"href":2105},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FNonStop","NonStop",[177,2108,2109,2117],{},[180,2110,2111],{},[183,2112,2113,2115],{},[186,2114,188],{},[186,2116,191],{},[196,2118,2119],{},[183,2120,2121,2123],{},[201,2122,203],{},[201,2124,2125],{},"__TANDEM",[10,2127,2128],{},[14,2129,2130],{},[160,2131,2134],{"rel":2132,"href":2133},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FNucleus_RTOS","Nucleus RTOS",[177,2136,2137,2145],{},[180,2138,2139],{},[183,2140,2141,2143],{},[186,2142,188],{},[186,2144,191],{},[196,2146,2147],{},[183,2148,2149,2151],{},[201,2150,203],{},[201,2152,2153],{},[14,2154,2155],{},"nucleus",[10,2157,2158],{},[14,2159,2160],{},[160,2161,2164],{"rel":2162,"href":2163},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FOpenbsd","OpenBSD",[177,2166,2167,2179],{},[180,2168,2169],{},[183,2170,2171,2173,2175,2177],{},[186,2172,188],{},[186,2174,191],{},[186,2176,308],{},[186,2178,194],{},[196,2180,2181,2193,2203],{},[183,2182,2183,2185,2189,2191],{},[201,2184,203],{},[201,2186,2187],{},[14,2188,2164],{},[201,2190],{},[201,2192],{},[183,2194,2195,2197,2199,2201],{},[201,2196,213],{},[201,2198,743],{},[201,2200],{},[201,2202],{},[183,2204,2205,2207,2210,2212],{},[201,2206,213],{},[201,2208,2209],{},"OpenBSD'V'_'R'",[201,2211],{},[201,2213,2214],{},"V = VersionR = RevisionMust be included from sys\u002Fparam.h",[10,2216,2217],{},[14,2218,236],{},[177,2220,2221,2229],{},[180,2222,2223],{},[183,2224,2225,2227],{},[186,2226,2164],{},[186,2228,191],{},[196,2230,2231,2239],{},[183,2232,2233,2236],{},[201,2234,2235],{},"3.1",[201,2237,2238],{},"OpenBSD3_1",[183,2240,2241,2244],{},[201,2242,2243],{},"3.9",[201,2245,2246],{},"OpenBSD3_9",[10,2248,2249],{},[14,2250,2251],{},[160,2252,2255],{"rel":2253,"href":2254},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FOS\u002F2","OS\u002F2",[177,2257,2258,2266],{},[180,2259,2260],{},[183,2261,2262,2264],{},[186,2263,188],{},[186,2265,191],{},[196,2267,2268,2275,2282,2290],{},[183,2269,2270,2272],{},[201,2271,203],{},[201,2273,2274],{},"OS2",[183,2276,2277,2279],{},[201,2278,203],{},[201,2280,2281],{},"_OS2",[183,2283,2284,2286],{},[201,2285,203],{},[201,2287,2288],{},[14,2289,2274],{},[183,2291,2292,2294],{},[201,2293,203],{},[201,2295,2296],{},[14,2297,2298],{},"TOS_OS2",[10,2300,2301],{},[14,2302,2303],{},[160,2304,2307],{"rel":2305,"href":2306},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FPalmos","Palm OS",[177,2309,2310,2320],{},[180,2311,2312],{},[183,2313,2314,2316,2318],{},[186,2315,188],{},[186,2317,191],{},[186,2319,194],{},[196,2321,2322],{},[183,2323,2324,2326,2331],{},[201,2325,203],{},[201,2327,2328],{},[14,2329,2330],{},"palmos",[201,2332,2333],{},"Defined by GNU C in PRC-Tools",[10,2335,2336],{},[14,2337,2338],{},[160,2339,2342],{"rel":2340,"href":2341},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FPlan_9_from_Bell_Labs","Plan 9",[177,2344,2345,2353],{},[180,2346,2347],{},[183,2348,2349,2351],{},[186,2350,188],{},[186,2352,191],{},[196,2354,2355],{},[183,2356,2357,2359],{},[201,2358,203],{},[201,2360,2361],{},"EPLAN9",[10,2363,2364],{},[14,2365,2366],{},[160,2367,2370],{"rel":2368,"href":2369},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FDC\u002FOSx","Pyramid DC\u002FOSx",[177,2372,2373,2381],{},[180,2374,2375],{},[183,2376,2377,2379],{},[186,2378,188],{},[186,2380,191],{},[196,2382,2383],{},[183,2384,2385,2387],{},[201,2386,203],{},[201,2388,2389],{},"pyr",[10,2391,2392],{},[14,2393,2394],{},[160,2395,2398],{"rel":2396,"href":2397},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FQNX","QNX",[177,2400,2401,2413],{},[180,2402,2403],{},[183,2404,2405,2407,2409,2411],{},[186,2406,188],{},[186,2408,191],{},[186,2410,308],{},[186,2412,194],{},[196,2414,2415,2428,2442,2458],{},[183,2416,2417,2419,2423,2425],{},[201,2418,203],{},[201,2420,2421],{},[14,2422,2398],{},[201,2424],{},[201,2426,2427],{},"QNX 4.x",[183,2429,2430,2432,2437,2439],{},[201,2431,203],{},[201,2433,2434],{},[14,2435,2436],{},"QNXNTO",[201,2438],{},[201,2440,2441],{},"QNX 6.x",[183,2443,2444,2446,2449,2452],{},[201,2445,213],{},[201,2447,2448],{},"_NTO_VERSION",[201,2450,2451],{},"VRR",[201,2453,2454,2455,2457],{},"V = VersionRR = RevisionOnly available when ",[14,2456,2436],{}," is defined.Must be included from sys\u002Fneutrino.h\u002F",[183,2459,2460,2462,2465,2468],{},[201,2461,213],{},[201,2463,2464],{},"BBNDK_VERSION_CURRENT",[201,2466,2467],{},"VVRRRRPPPP",[201,2469,2470],{},"V = VersionRRRR = RevisionPPPP = PatchOnly available on Blackberry 10From Blackberry 10.1.0Must be included from bbndk.h",[10,2472,2473],{},[14,2474,236],{},[177,2476,2477,2485],{},[180,2478,2479],{},[183,2480,2481,2483],{},[186,2482,2398],{},[186,2484,2448],{},[196,2486,2487],{},[183,2488,2489,2492],{},[201,2490,2491],{},"6.2",[201,2493,2494],{},"620",[10,2496,2497],{},[14,2498,2499],{},[160,2500,2503],{"rel":2501,"href":2502},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FReliant_UNIX","Reliant UNIX",[177,2505,2506,2514],{},[180,2507,2508],{},[183,2509,2510,2512],{},[186,2511,188],{},[186,2513,191],{},[196,2515,2516],{},[183,2517,2518,2520],{},[201,2519,203],{},[201,2521,2522],{},"sinux",[10,2524,2525],{},[14,2526,2527],{},[160,2528,2531],{"rel":2529,"href":2530},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FSCO_OpenServer","SCO OpenServer",[177,2533,2534,2544],{},[180,2535,2536],{},[183,2537,2538,2540,2542],{},[186,2539,188],{},[186,2541,191],{},[186,2543,194],{},[196,2545,2546,2555,2564],{},[183,2547,2548,2550,2553],{},[201,2549,203],{},[201,2551,2552],{},"M_I386",[201,2554,522],{},[183,2556,2557,2559,2562],{},[201,2558,203],{},[201,2560,2561],{},"M_XENIX",[201,2563,522],{},[183,2565,2566,2568,2571],{},[201,2567,203],{},[201,2569,2570],{},"_SCO_DS",[201,2572],{},[10,2574,2575],{},[14,2576,2577],{},[160,2578,2581],{"rel":2579,"href":2580},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FSolaris_Operating_Environment","Solaris",[177,2583,2584,2594],{},[180,2585,2586],{},[183,2587,2588,2590,2592],{},[186,2589,188],{},[186,2591,191],{},[186,2593,194],{},[196,2595,2596,2605,2614],{},[183,2597,2598,2600,2603],{},[201,2599,203],{},[201,2601,2602],{},"sun",[201,2604],{},[183,2606,2607,2609,2612],{},[201,2608,203],{},[201,2610,2611],{},"__sun",[201,2613],{},[183,2615,2616,2618,2625],{},[201,2617,213],{},[201,2619,2620,2621,2624],{},"_",[1015,2622,2623],{},"'System'","'Version'",[201,2626,2627],{},"System = uname -sVersion = uname -rAny illegal character is replaced by an underscore.Defined by Sun Studio",[10,2629,2630,2631,2633,2634,2637,2638,2641,2642,2644],{},"Use the SVR4 macros to distinguish between Solaris and SunOS.",[238,2632],{},"\n#if defined(sun) || defined(**sun) # if defined(**SVR4) || defined(",[14,2635,2636],{},"svr4",") \u002F_ Solaris ",[1015,2639,2640],{},"\u002F # else \u002F"," SunOS _\u002F # endif #endif",[238,2643],{},[14,2645,236],{},[177,2647,2648,2656],{},[180,2649,2650],{},[183,2651,2652,2654],{},[186,2653,2581],{},[186,2655,191],{},[196,2657,2658,2666],{},[183,2659,2660,2663],{},[201,2661,2662],{},"2.7",[201,2664,2665],{},"__SunOS_5_7",[183,2667,2668,2670],{},[201,2669,426],{},[201,2671,2672],{},"__SunOS_5_8",[10,2674,2675],{},[14,2676,2677],{},[160,2678,2681],{"rel":2679,"href":2680},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FStratus_VOS","Stratus VOS",[177,2683,2684,2696],{},[180,2685,2686],{},[183,2687,2688,2690,2692,2694],{},[186,2689,188],{},[186,2691,191],{},[186,2693,308],{},[186,2695,194],{},[196,2697,2698,2711],{},[183,2699,2700,2702,2707,2709],{},[201,2701,203],{},[201,2703,2704],{},[14,2705,2706],{},"VOS",[201,2708],{},[201,2710],{},[183,2712,2713,2715,2719,2721],{},[201,2714,213],{},[201,2716,2717],{},[14,2718,2706],{},[201,2720,337],{},[201,2722,1156],{},[10,2724,2725,2726,2729,2730,2732],{},"Notice that the ",[30,2727,2728],{},"__VOS__"," macro is defined by the compiler, but as several compilers can co-exist in the same OS release, the version number is not reliable.",[238,2731],{},[14,2733,2734],{},[160,2735,2738],{"rel":2736,"href":2737},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FUNIX_System_V","SVR4 Environment",[177,2740,2741,2751],{},[180,2742,2743],{},[183,2744,2745,2747,2749],{},[186,2746,188],{},[186,2748,191],{},[186,2750,194],{},[196,2752,2753,2764,2773,2783],{},[183,2754,2755,2757,2762],{},[201,2756,203],{},[201,2758,2759],{},[14,2760,2761],{},"sysv",[201,2763],{},[183,2765,2766,2768,2771],{},[201,2767,203],{},[201,2769,2770],{},"__SVR4",[201,2772],{},[183,2774,2775,2777,2781],{},[201,2776,203],{},[201,2778,2779],{},[14,2780,2636],{},[201,2782],{},[183,2784,2785,2787,2790],{},[201,2786,203],{},[201,2788,2789],{},"_SYSTYPE_SVR4",[201,2791,2792],{},"Defined on IRIX",[10,2794,2795],{},[14,2796,2797],{},[160,2798,2801],{"rel":2799,"href":2800},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FSyllable_Desktop","Syllable",[177,2803,2804,2812],{},[180,2805,2806],{},[183,2807,2808,2810],{},[186,2809,188],{},[186,2811,191],{},[196,2813,2814],{},[183,2815,2816,2818],{},[201,2817,203],{},[201,2819,2820],{},[14,2821,2822],{},"SYLLABLE",[10,2824,2825],{},[14,2826,2827],{},[160,2828,2831],{"rel":2829,"href":2830},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FSymbian_OS","Symbian OS",[177,2833,2834,2842],{},[180,2835,2836],{},[183,2837,2838,2840],{},[186,2839,188],{},[186,2841,191],{},[196,2843,2844],{},[183,2845,2846,2848],{},[201,2847,203],{},[201,2849,2850],{},[14,2851,2852],{},"SYMBIAN32",[10,2854,2855],{},[14,2856,2857],{},[160,2858,2861],{"rel":2859,"href":2860},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FDigital_UNIX","Tru64 (OSF\u002F1)",[177,2863,2864,2872],{},[180,2865,2866],{},[183,2867,2868,2870],{},[186,2869,188],{},[186,2871,191],{},[196,2873,2874,2883],{},[183,2875,2876,2878],{},[201,2877,203],{},[201,2879,2880],{},[14,2881,2882],{},"osf",[183,2884,2885,2887],{},[201,2886,203],{},[201,2888,2889],{},"__osf",[10,2891,2892],{},[14,2893,2894],{},[160,2895,2898],{"rel":2896,"href":2897},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FUltrix","Ultrix",[177,2900,2901,2909],{},[180,2902,2903],{},[183,2904,2905,2907],{},[186,2906,188],{},[186,2908,191],{},[196,2910,2911,2918,2925,2933],{},[183,2912,2913,2915],{},[201,2914,203],{},[201,2916,2917],{},"ultrix",[183,2919,2920,2922],{},[201,2921,203],{},[201,2923,2924],{},"__ultrix",[183,2926,2927,2929],{},[201,2928,203],{},[201,2930,2931],{},[14,2932,2917],{},[183,2934,2935,2937],{},[201,2936,203],{},[201,2938,2939],{},"unix & vax",[10,2941,2942],{},[14,2943,2944],{},[160,2945,2948],{"rel":2946,"href":2947},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FUNICOS","UNICOS",[177,2950,2951,2963],{},[180,2952,2953],{},[183,2954,2955,2957,2959,2961],{},[186,2956,188],{},[186,2958,191],{},[186,2960,308],{},[186,2962,194],{},[196,2964,2965,2976],{},[183,2966,2967,2969,2972,2974],{},[201,2968,203],{},[201,2970,2971],{},"_UNICOS",[201,2973],{},[201,2975],{},[183,2977,2978,2980,2982,2984],{},[201,2979,213],{},[201,2981,2971],{},[201,2983,337],{},[201,2985,1156],{},[10,2987,2988],{},[14,2989,2990],{},[160,2991,2994],{"rel":2992,"href":2993},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FUnicos","UNICOS\u002Fmp",[177,2996,2997,3007],{},[180,2998,2999],{},[183,3000,3001,3003,3005],{},[186,3002,188],{},[186,3004,191],{},[186,3006,194],{},[196,3008,3009],{},[183,3010,3011,3013,3016],{},[201,3012,203],{},[201,3014,3015],{},"_CRAY__crayx1",[201,3017],{},[10,3019,3020],{},[14,3021,3022],{},[160,3023,3026],{"rel":3024,"href":3025},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FUnix","UNIX Environment",[177,3028,3029,3037],{},[180,3030,3031],{},[183,3032,3033,3035],{},[186,3034,188],{},[186,3036,191],{},[196,3038,3039,3048],{},[183,3040,3041,3043],{},[201,3042,203],{},[201,3044,3045],{},[14,3046,3047],{},"unix",[183,3049,3050,3052],{},[201,3051,203],{},[201,3053,3054],{},"__unix",[10,3056,3057,3058,3060],{},"Notice that not all compilers defines these macros, e.g. the xlC or the DEC C\u002FC++ compiler, so it may be better to use the POSIX or X\u002FOpen standard macros instead.",[238,3059],{},[14,3061,3062],{},[160,3063,3066],{"rel":3064,"href":3065},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FUnixWare","UnixWare",[177,3068,3069,3077],{},[180,3070,3071],{},[183,3072,3073,3075],{},[186,3074,188],{},[186,3076,191],{},[196,3078,3079,3086],{},[183,3080,3081,3083],{},[201,3082,203],{},[201,3084,3085],{},"sco",[183,3087,3088,3090],{},[201,3089,203],{},[201,3091,3092],{},"_UNIXWARE7",[10,3094,3095],{},[14,3096,3097],{},[160,3098,3101],{"rel":3099,"href":3100},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FUWIN","U\u002FWin Environment",[177,3103,3104,3112],{},[180,3105,3106],{},[183,3107,3108,3110],{},[186,3109,188],{},[186,3111,191],{},[196,3113,3114],{},[183,3115,3116,3118],{},[201,3117,203],{},[201,3119,3120],{},"_UWIN",[10,3122,3123],{},[14,3124,3125],{},[160,3126,3129],{"rel":3127,"href":3128},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FVms","VMS",[177,3131,3132,3144],{},[180,3133,3134],{},[183,3135,3136,3138,3140,3142],{},[186,3137,188],{},[186,3139,191],{},[186,3141,308],{},[186,3143,194],{},[196,3145,3146,3156,3167],{},[183,3147,3148,3150,3152,3154],{},[201,3149,203],{},[201,3151,3129],{},[201,3153],{},[201,3155],{},[183,3157,3158,3160,3163,3165],{},[201,3159,203],{},[201,3161,3162],{},"__VMS",[201,3164],{},[201,3166],{},[183,3168,3169,3171,3174,3177],{},[201,3170,213],{},[201,3172,3173],{},"__VMS_VER",[201,3175,3176],{},"VVRREPPTT",[201,3178,3179],{},"VV = VersionRR = RevisionE = Edit numberPP = Patch (01 = A, ... 26 = Z)TT = Type (22 = official)",[10,3181,3182],{},[14,3183,236],{},[177,3185,3186,3194],{},[180,3187,3188],{},[183,3189,3190,3192],{},[186,3191,3129],{},[186,3193,3173],{},[196,3195,3196,3204,3211],{},[183,3197,3198,3201],{},[201,3199,3200],{},"6.1",[201,3202,3203],{},"60100022",[183,3205,3206,3208],{},[201,3207,2491],{},[201,3209,3210],{},"60200022",[183,3212,3213,3216],{},[201,3214,3215],{},"6.2-1I",[201,3217,3218],{},"60210922",[10,3220,3221],{},[14,3222,3223],{},[160,3224,3227],{"rel":3225,"href":3226},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FVxWorks","VxWorks",[177,3229,3230,3242],{},[180,3231,3232],{},[183,3233,3234,3236,3238,3240],{},[186,3235,188],{},[186,3237,191],{},[186,3239,194],{},[186,3241],{},[196,3243,3244,3258,3269,3281,3293,3305,3320],{},[183,3245,3246,3248,3253,3256],{},[201,3247,203],{},[201,3249,3250],{},[14,3251,3252],{},"VXWORKS",[201,3254,3255],{},"Defined by GNU C and Diab (from ?)",[201,3257],{},[183,3259,3260,3262,3265,3267],{},[201,3261,203],{},[201,3263,3264],{},"__vxworks",[201,3266,3255],{},[201,3268],{},[183,3270,3271,3273,3276,3279],{},[201,3272,213],{},[201,3274,3275],{},"_WRS_VXWORKS_MAJOR",[201,3277,3278],{},"VersionMust be included from version.h",[201,3280],{},[183,3282,3283,3285,3288,3291],{},[201,3284,213],{},[201,3286,3287],{},"_WRS_VXWORKS_MINOR",[201,3289,3290],{},"RevisionMust be included from version.h",[201,3292],{},[183,3294,3295,3297,3300,3303],{},[201,3296,213],{},[201,3298,3299],{},"_WRS_VXWORKS_MAINT",[201,3301,3302],{},"Patch\u002FmaintenanceMust be included from version.h",[201,3304],{},[183,3306,3307,3310,3315,3318],{},[201,3308,3309],{},"Mode",[201,3311,3312],{},[14,3313,3314],{},"RTP",[201,3316,3317],{},"For real-time mode",[201,3319],{},[183,3321,3322,3324,3327,3330],{},[201,3323,3309],{},[201,3325,3326],{},"_WRS_KERNEL",[201,3328,3329],{},"For kernel mode",[201,3331],{},[10,3333,3334],{},[14,3335,236],{},[177,3337,3338,3350],{},[180,3339,3340],{},[183,3341,3342,3344,3346,3348],{},[186,3343,3227],{},[186,3345,3275],{},[186,3347,3287],{},[186,3349,3299],{},[196,3351,3352],{},[183,3353,3354,3356,3358,3360],{},[201,3355,2491],{},[201,3357,410],{},[201,3359,378],{},[201,3361,3362],{},"0",[10,3364,3365],{},[14,3366,3367],{},[160,3368,3371],{"rel":3369,"href":3370},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FCategory:Microsoft_Windows","Windows",[177,3373,3374,3384],{},[180,3375,3376],{},[183,3377,3378,3380,3382],{},[186,3379,188],{},[186,3381,191],{},[186,3383,194],{},[196,3385,3386,3396,3406,3416,3428,3439],{},[183,3387,3388,3390,3393],{},[201,3389,203],{},[201,3391,3392],{},"_WIN16",[201,3394,3395],{},"Defined for 16-bit environments 1",[183,3397,3398,3400,3403],{},[201,3399,203],{},[201,3401,3402],{},"_WIN32",[201,3404,3405],{},"Defined for both 32-bit and 64-bit environments 1",[183,3407,3408,3410,3413],{},[201,3409,203],{},[201,3411,3412],{},"_WIN64",[201,3414,3415],{},"Defined for 64-bit environments 1",[183,3417,3418,3420,3425],{},[201,3419,203],{},[201,3421,3422],{},[14,3423,3424],{},"WIN32",[201,3426,3427],{},"Defined by Borland C++",[183,3429,3430,3432,3437],{},[201,3431,203],{},[201,3433,3434],{},[14,3435,3436],{},"TOS_WIN",[201,3438,231],{},[183,3440,3441,3443,3448],{},[201,3442,203],{},[201,3444,3445],{},[14,3446,3447],{},"WINDOWS",[201,3449,3450],{},"Defined by Watcom C\u002FC++",[10,3452,3453],{},[14,3454,3455],{},[160,3456,3459],{"rel":3457,"href":3458},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FWindows_CE","Windows CE",[177,3461,3462,3474],{},[180,3463,3464],{},[183,3465,3466,3468,3470,3472],{},[186,3467,188],{},[186,3469,191],{},[186,3471,308],{},[186,3473,194],{},[196,3475,3476,3488,3498,3513],{},[183,3477,3478,3480,3483,3485],{},[201,3479,203],{},[201,3481,3482],{},"_WIN32_WCE",[201,3484],{},[201,3486,3487],{},"Defined by Embedded Visual Studio C++",[183,3489,3490,3492,3494,3496],{},[201,3491,213],{},[201,3493,3482],{},[201,3495,2451],{},[201,3497,219],{},[183,3499,3500,3502,3508,3510],{},[201,3501,203],{},[201,3503,3424,3504,3507],{},[1015,3505,3506],{},"PLATFORM","'P'",[201,3509],{},[201,3511,3512],{},"P = Platform",[183,3514,3515,3517,3521,3523],{},[201,3516,213],{},[201,3518,3424,3519,3507],{},[1015,3520,3506],{},[201,3522,337],{},[201,3524,3525],{},"P = PlatformV = Version",[10,3527,3528],{},[14,3529,236],{},[177,3531,3532,3540],{},[180,3533,3534],{},[183,3535,3536,3538],{},[186,3537,213],{},[186,3539,3482],{},[196,3541,3542,3550,3558,3565,3573,3580,3588],{},[183,3543,3544,3547],{},[201,3545,3546],{},"2.01",[201,3548,3549],{},"201",[183,3551,3552,3555],{},[201,3553,3554],{},"2.11",[201,3556,3557],{},"211",[183,3559,3560,3562],{},[201,3561,447],{},[201,3563,3564],{},"300",[183,3566,3567,3570],{},[201,3568,3569],{},"4.0",[201,3571,3572],{},"400",[183,3574,3575,3577],{},[201,3576,277],{},[201,3578,3579],{},"410",[183,3581,3582,3585],{},[201,3583,3584],{},"4.2",[201,3586,3587],{},"420",[183,3589,3590,3593],{},[201,3591,3592],{},"5.0",[201,3594,3595],{},"501",[177,3597,3598,3610],{},[180,3599,3600],{},[183,3601,3602,3605,3607],{},[186,3603,3604],{},"Platform",[186,3606,191],{},[186,3608,3609],{},"Value",[196,3611,3612,3622,3632,3641,3651,3661,3670],{},[183,3613,3614,3617,3620],{},[201,3615,3616],{},"H\u002FPC 2000",[201,3618,3619],{},"WIN32_PLATFORM_HPC2000",[201,3621],{},[183,3623,3624,3627,3630],{},[201,3625,3626],{},"H\u002FPC Pro 2.11",[201,3628,3629],{},"WIN32_PLATFORM_HPCPRO",[201,3631,3557],{},[183,3633,3634,3637,3639],{},[201,3635,3636],{},"H\u002FPC Pro 3.0",[201,3638,3629],{},[201,3640,3564],{},[183,3642,3643,3646,3649],{},[201,3644,3645],{},"Pocket PC",[201,3647,3648],{},"WIN32_PLATFORM_PSPC",[201,3650,370],{},[183,3652,3653,3656,3658],{},[201,3654,3655],{},"Pocket PC 2002",[201,3657,3648],{},[201,3659,3660],{},"310",[183,3662,3663,3666,3668],{},[201,3664,3665],{},"Windows Mobile 2003",[201,3667,3648],{},[201,3669,3572],{},[183,3671,3672,3675,3678],{},[201,3673,3674],{},"Smartphone 2002",[201,3676,3677],{},"WIN32_PLATFORM_WFSP",[201,3679,3680],{},"100",[10,3682,3683],{},[14,3684,3685],{},[160,3686,3689],{"rel":3687,"href":3688},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FBristol_Technology_Inc.","Wind\u002FU Environment",[177,3691,3692,3704],{},[180,3693,3694],{},[183,3695,3696,3698,3700,3702],{},[186,3697,188],{},[186,3699,191],{},[186,3701,308],{},[186,3703,194],{},[196,3705,3706,3717],{},[183,3707,3708,3710,3713,3715],{},[201,3709,203],{},[201,3711,3712],{},"_WINDU_SOURCE",[201,3714],{},[201,3716],{},[183,3718,3719,3721,3723,3726],{},[201,3720,213],{},[201,3722,3712],{},[201,3724,3725],{},"0xVVRRPP",[201,3727,3728],{},"VV = VersionRR = RevisionPP = Patch",[10,3730,3731],{},[14,3732,236],{},[177,3734,3735,3744],{},[180,3736,3737],{},[183,3738,3739,3742],{},[186,3740,3741],{},"Wind\u002FU",[186,3743,3712],{},[196,3745,3746],{},[183,3747,3748,3751],{},[201,3749,3750],{},"3.1.2",[201,3752,3753],{},"0x030102",[10,3755,3756],{},[14,3757,3758],{},[160,3759,3762],{"rel":3760,"href":3761},[172,173],"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FZ\u002FOS","z\u002FOS",[177,3764,3765,3775],{},[180,3766,3767],{},[183,3768,3769,3771,3773],{},[186,3770,188],{},[186,3772,191],{},[186,3774,194],{},[196,3776,3777,3789,3800],{},[183,3778,3779,3781,3786],{},[201,3780,203],{},[201,3782,3783],{},[14,3784,3785],{},"MVS",[201,3787,3788],{},"Host",[183,3790,3791,3793,3798],{},[201,3792,203],{},[201,3794,3795],{},[14,3796,3797],{},"HOS_MVS",[201,3799,3788],{},[183,3801,3802,3804,3809],{},[201,3803,203],{},[201,3805,3806],{},[14,3807,3808],{},"TOS_MVS",[201,3810,3811],{},"Target",[3813,3814,3815],"style",{},"html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":28,"searchDepth":57,"depth":57,"links":3817},[],"When we compile some cross -platform programs, we will inevitably encounter _win32 , Linux What are the macroscopic macro of the compiler environment.There are many differences between _win32 and win32 before.But there is a list here, making a memo.",false,"md",null,{},"2023-11-05","\u002Fblog\u002F2023\u002F2023-11-05-platform-macros",{"title":5,"description":3818},"blog\u002F2023\u002F2023-11-05-platform-macros","When we compile some cross -platform programs, we will inevitably encounter _win32 __linux__ what is the macro of the compiler or the compiler environment.It indicates some information of the current platform environment to the compiler.",[3829,3830],"C","C++","uukORXtk6bfONYN9MnSQX0nxqw_G1aADIbLmCCcc0u0",1777090296318]