Skip to content

Commit 4fcc625

Browse files
committed
openvms: Improve detection of Clang-based compiler
1 parent 6fe14a1 commit 4fcc625

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pmacroscompiler.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,11 @@
221221
# define P_CC_CLANG
222222
#elif defined(__HP_cc) || defined(__HP_aCC)
223223
# define P_CC_HP
224-
#elif defined (__DECC) || defined(__DECCXX) || defined(__VMS)
224+
#elif defined (__DECC) || defined(__DECCXX)
225225
# define P_CC_DEC
226+
#elif defined(__VMS) && defined(__clang__)
227+
# define P_CC_DEC
228+
# define P_CC_CLANG
226229
#elif (defined(__sgi) || defined(sgi)) && \
227230
(defined(_COMPILER_VERSION) || defined(_SGI_COMPILER_VERSION))
228231
# define P_CC_MIPS
@@ -240,6 +243,8 @@
240243
# define P_CC_PGI
241244
#elif defined(_CRAYC)
242245
# define P_CC_CRAY
246+
#elif defined(__clang__)
247+
# define P_CC_CLANG
243248
#endif
244249

245250
/* We need this to generate full Doxygen documentation */

0 commit comments

Comments
 (0)