BUILD/MINOR: 51d: Updated build registration output to indicate thatif the library is a dummy one or not.
When built with the dummy 51Degrees library for testing, the output will include "(dummy library)" to ensure it is clear that this is this is not the API.
This commit is contained in:
parent
63329e36ab
commit
f4a82fb26b
|
@ -24,6 +24,10 @@
|
|||
#define FIFTYONEDEGREES_H_PATTERN_INCLUDED
|
||||
#endif
|
||||
|
||||
#ifndef FIFTYONEDEGREES_DUMMY_LIB
|
||||
#define FIFTYONEDEGREES_DUMMY_LIB
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef enum e_fiftyoneDegrees_MatchMethod {
|
||||
|
|
|
@ -24,6 +24,10 @@
|
|||
#define FIFTYONEDEGREES_H_TRIE_INCLUDED
|
||||
#endif
|
||||
|
||||
#ifndef FIFTYONEDEGREES_DUMMY_LIB
|
||||
#define FIFTYONEDEGREES_DUMMY_LIB
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef enum e_fiftyoneDegrees_DataSetInitStatus {
|
||||
|
|
15
src/51d.c
15
src/51d.c
|
@ -827,4 +827,17 @@ INITCALL1(STG_REGISTER, sample_register_convs, &conv_kws);
|
|||
|
||||
REGISTER_POST_CHECK(init_51degrees);
|
||||
REGISTER_POST_DEINIT(deinit_51degrees);
|
||||
REGISTER_BUILD_OPTS("Built with 51Degrees support.");
|
||||
|
||||
#if defined(FIFTYONEDEGREES_H_PATTERN_INCLUDED)
|
||||
#ifndef FIFTYONEDEGREES_DUMMY_LIB
|
||||
REGISTER_BUILD_OPTS("Built with 51Degrees Pattern support.");
|
||||
#else
|
||||
REGISTER_BUILD_OPTS("Built with 51Degrees Pattern support (dummy library).");
|
||||
#endif
|
||||
#elif defined(FIFTYONEDEGREES_H_TRIE_INCLUDED)
|
||||
#ifndef FIFTYONEDEGREES_DUMMY_LIB
|
||||
REGISTER_BUILD_OPTS("Built with 51Degrees Trie support.");
|
||||
#else
|
||||
REGISTER_BUILD_OPTS("Built with 51Degrees Trie support (dummy library).");
|
||||
#endif
|
||||
#endif
|
Loading…
Reference in New Issue