diff options
author | Wo'O Ideafarm <ideafarmcity@gmail.com> | 2023-07-28 11:45:31 -0700 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-08-02 20:31:44 +0100 |
commit | fafb7d30038678bffba739eaa933b926d2ee194f (patch) | |
tree | aa776734593ad24e73c66cb24bc0cb75b6df4131 /ms | |
parent | 38c70a161cc6f96682bd77c8a935c5767355438c (diff) |
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 <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21595)
Diffstat (limited to 'ms')
-rw-r--r-- | ms/applink.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <stdio.h> # include <io.h> # include <fcntl.h> +#endif # ifdef __BORLANDC__ /* _lseek in <io.h> is a function-like macro so we can't take its address */ |