/src/proj/src/embedded_resources.c
Line | Count | Source (jump to first uncovered line) |
1 | | #include <stdint.h> |
2 | | #include <string.h> |
3 | | |
4 | | #include "embedded_resources.h" |
5 | | |
6 | | #if USE_SHARP_EMBED |
7 | | |
8 | | #include "PROJ_DB_SQL_MD5.h" |
9 | | |
10 | | const unsigned char *pj_get_embedded_proj_db(unsigned int *pnSize) { |
11 | | (void)PROJ_DB_SQL_MD5; |
12 | | static const unsigned char proj_db[] = { |
13 | | #embed PROJ_DB |
14 | | }; |
15 | | *pnSize = (unsigned int)sizeof(proj_db); |
16 | | return proj_db; |
17 | | } |
18 | | |
19 | | #else |
20 | | |
21 | | #include "file_embed/proj_db.h" |
22 | 0 | const unsigned char *pj_get_embedded_proj_db(unsigned int *pnSize) { |
23 | 0 | *pnSize = proj_db_size; |
24 | 0 | return proj_db_data; |
25 | 0 | } |
26 | | |
27 | | #endif |
28 | | |
29 | | #include "file_embed/embedded_resources.c" |