[pcre-dev] [Bug 1907] Setting for calling convention

Inizio della pagina
Delete this message
Autore: admin
Data:  
To: pcre-dev
Oggetto: [pcre-dev] [Bug 1907] Setting for calling convention
https://bugs.exim.org/show_bug.cgi?id=1907

--- Comment #3 from Philip Hazel <ph10@???> ---
I've just looked at the PCRE1 files, where this originated, and there is no
CALL_CONVENTION in the pcre.h file, where the functions are declared, just in
the .c files where the functions are defined. It's been like this for a very
long time (since it was introduced in 2008), and nobody has complained, though
perhaps nobody is using it. However, somebody must be because I was asked to
put it in in the first place.

Have you tried setting PCRE2_CALL_CONVENTION manually? My guess is that it
should work. There has never been a way of setting it from CMake or from
"configure".
I suppose those who use it probably put -DPCRE2_CALL_CONVENTION=something in
their CFLAGS. That's what the text in NON-AUTOTOOLS-BUILD seems to suggest:

"It is possible to compile programs to use different calling conventions using
MSVC. Search the web for "calling conventions" for more information. To make it
easier to change the calling convention for the exported functions in the      
PCRE2 library, the macro PCRE2_CALL_CONVENTION is present in all the external
definitions. It can be set externally when compiling (e.g. in CFLAGS). If it is
not set, it defaults to empty; the default calling convention is then used
(which is what is wanted most of the time)."


--
You are receiving this mail because:
You are on the CC list for the bug.