VMS: mitigate for the C++ compiler that doesn't understand certain pragmas
[openssl.git] / include / openssl / __DECC_INCLUDE_EPILOGUE.H
index e57c0eab3e3afa3026813c60e1e82798ad38af2c..b051919ebc2bdd88f392afee3d805916e03e1bca 100644 (file)
@@ -8,9 +8,15 @@
  */
 
 /*
- * This file is only used by HP C on VMS, and is included automatically
+ * This file is only used by HP C/C++ on VMS, and is included automatically
  * after each header file from this directory
  */
 
+/*
+ * The C++ compiler doesn't understand these pragmas, even though it
+ * understands the corresponding command line qualifier.
+ */
+#ifndef __cplusplus
 /* restore state.  Must correspond to the save in __decc_include_prologue.h */
-#pragma names restore
+# pragma names restore
+#endif