From fafb7d30038678bffba739eaa933b926d2ee194f Mon Sep 17 00:00:00 2001 From: Wo'O Ideafarm Date: Fri, 28 Jul 2023 11:45:31 -0700 Subject: [PATCH] trivial change: optionally suppress include lines CLA: trivial Code that includes applink.c can now define APPLINK_NO_INCLUDES to suppress the include preprocessor lines in that file. This might be needed if, for example, applink.c is being included into a source file that will be compiled to reference a C library built using different calling conventions. (Example: Open Watcom.) This pull request is intended to replace an identical pull request that I screwed up. Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell Reviewed-by: Paul Dale Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/21595) --- ms/applink.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ms/applink.c b/ms/applink.c index 1d8ecf79e7..460ee7339e 100644 --- a/ms/applink.c +++ b/ms/applink.c @@ -34,9 +34,18 @@ #define APPLINK_MAX 22 /* always same as last macro */ #ifndef APPMACROS_ONLY + +/* + * Normally, do not define APPLINK_NO_INCLUDES. Define it if you are using + * symbol preprocessing and do not want the preprocessing to affect the + * following included header files. You will need to put these + * include lines somewhere in the file that is including applink.c. + */ +#ifndef APPLINK_NO_INCLUDES # include # include # include +#endif # ifdef __BORLANDC__ /* _lseek in is a function-like macro so we can't take its address */