标签:
#pragma once 是一个比较常用的指令,只要在头文件的最开始加入这条指令就能够保证头文件被编译一次Compiler | #pragma once |
---|---|
Clang | Supported[7] |
Comeau C/C++ | Supported[8] |
C++Builder XE3 | Supported[9] |
Digital Mars C++ | Supported[10] |
GCC | Supported[11] (since 3.4[5]) |
HP C/aC++ | Supported[12] (since at least A.06.12) |
IBM XL C/C++ | Supported[13] (since 13.1.1) |
Intel C++ Compiler | Supported[14] |
Microsoft Visual C++ | Supported[15] (since 4.2) |
Pelles C | Supported[16] |
ARM DS-5 | Supported[17] |
IAR C/C++ | Supported[18] |
Solaris Studio C/C++ | Not supported[19][20] |
标签:
原文地址:http://www.cnblogs.com/jeffen/p/5953840.html