diff options
author | Andres Freund <andres@anarazel.de> | 2022-07-17 17:23:42 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-07-17 17:23:42 -0700 |
commit | f2b73c8d75d583adcdd3562adca335d31f430ac5 (patch) | |
tree | f2757634daa0393b131ac631fbdb90e1e4ad1789 /src/include/jit/jit.h | |
parent | 31e5b502920351ddcf8f5efa7f2dc4a60ecdca3a (diff) | |
download | postgresql-f2b73c8d75d583adcdd3562adca335d31f430ac5.tar.gz |
Add central declarations for dlsym()ed symbols
This is in preparation for defaulting to -fvisibility=hidden in extensions,
instead of exporting all symbols. For that symbols intended to be exported
need to be tagged with PGDLLEXPORT. Most extensions only need to do so for
_PG_init() and functions defined with PG_FUNCTION_INFO_V1. Adding central
declarations avoids each extension having to add PGDLLEXPORT. Any existing
declarations in extensions will continue to work if fmgr.h is included before
them, otherwise compilation for Windows will fail.
Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/20211101020311.av6hphdl6xbjbuif@alap3.anarazel.de
Diffstat (limited to 'src/include/jit/jit.h')
-rw-r--r-- | src/include/jit/jit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/jit/jit.h b/src/include/jit/jit.h index d194033209..600ddfc753 100644 --- a/src/include/jit/jit.h +++ b/src/include/jit/jit.h @@ -63,7 +63,7 @@ typedef struct JitContext typedef struct JitProviderCallbacks JitProviderCallbacks; -extern void _PG_jit_provider_init(JitProviderCallbacks *cb); +extern PGDLLEXPORT void _PG_jit_provider_init(JitProviderCallbacks *cb); typedef void (*JitProviderInit) (JitProviderCallbacks *cb); typedef void (*JitProviderResetAfterErrorCB) (void); typedef void (*JitProviderReleaseContextCB) (JitContext *context); |