Skip to content

Commit 98ddc68

Browse files
Added CMake & extern "C" (#6)
* untracked files on master: 1bed650 Make lowercase handling more portable * index on master: 1bed650 Make lowercase handling more portable * Add CMakeLists.txt
1 parent 8c75872 commit 98ddc68

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
idf_component_register(
2+
SRCS
3+
"zones.c"
4+
5+
INCLUDE_DIRS "."
6+
)

zones.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,13 @@
55
* @param[in] name the tz database name for the timezone in question
66
* @return the POSIX string for the timezone in question
77
**/
8+
#ifdef __cplusplus
9+
extern "C" {
10+
#endif
11+
12+
813
const char * micro_tz_db_get_posix_str(const char * name);
14+
15+
#ifdef __cplusplus
16+
}
17+
#endif

0 commit comments

Comments
 (0)