From: Richard Levitte Date: Mon, 11 Apr 2016 16:42:52 +0000 (+0200) Subject: VMS: It seems DEC C doesn't handle certain header files quite right X-Git-Tag: OpenSSL_1_1_0-pre6~1002 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1bfe73d500f6127e61fcf2ffcf9b60c41cd6484e;p=oweals%2Fopenssl.git VMS: It seems DEC C doesn't handle certain header files quite right With DEC C on VMS, you can use __DECC_INCLUDE_PROLOGUE.H and __DECC_INCLUDE_EPILOGUE.H to include some DEC C specific features or pragmas without having to touch the other header files. It seems, however, that the current version of the compiler requires the file names to be upcased, or it doesn't handle them quite right. Reviewed-by: Andy Polyakov --- diff --git a/include/openssl/__DECC_INCLUDE_EPILOGUE.H b/include/openssl/__DECC_INCLUDE_EPILOGUE.H new file mode 100644 index 0000000000..584384f9c0 --- /dev/null +++ b/include/openssl/__DECC_INCLUDE_EPILOGUE.H @@ -0,0 +1,7 @@ +/* + * This file is only used by HP C on VMS, and is included automatically + * after each header file from this directory + */ + +/* restore state. Must correspond to the save in __decc_include_prologue.h */ +#pragma names restore diff --git a/include/openssl/__DECC_INCLUDE_PROLOGUE.H b/include/openssl/__DECC_INCLUDE_PROLOGUE.H new file mode 100644 index 0000000000..455181cd6d --- /dev/null +++ b/include/openssl/__DECC_INCLUDE_PROLOGUE.H @@ -0,0 +1,11 @@ +/* + * This file is only used by HP C on VMS, and is included automatically + * after each header file from this directory + */ + +/* save state */ +#pragma names save +/* have the compiler shorten symbols larger than 31 chars to 23 chars + * followed by a 8 hex char CRC + */ +#pragma names as_is,shortened diff --git a/include/openssl/__decc_include_epilogue.h b/include/openssl/__decc_include_epilogue.h deleted file mode 100644 index 584384f9c0..0000000000 --- a/include/openssl/__decc_include_epilogue.h +++ /dev/null @@ -1,7 +0,0 @@ -/* - * This file is only used by HP C on VMS, and is included automatically - * after each header file from this directory - */ - -/* restore state. Must correspond to the save in __decc_include_prologue.h */ -#pragma names restore diff --git a/include/openssl/__decc_include_prologue.h b/include/openssl/__decc_include_prologue.h deleted file mode 100644 index 455181cd6d..0000000000 --- a/include/openssl/__decc_include_prologue.h +++ /dev/null @@ -1,11 +0,0 @@ -/* - * This file is only used by HP C on VMS, and is included automatically - * after each header file from this directory - */ - -/* save state */ -#pragma names save -/* have the compiler shorten symbols larger than 31 chars to 23 chars - * followed by a 8 hex char CRC - */ -#pragma names as_is,shortened