Skip to content

Commit 50e6920

Browse files
authored
Merge pull request #644 from hdijkema/extern-c
Add "extern "C" {" in order to get webui compiling in a C++ environment
2 parents 63e0a97 + 926bd7e commit 50e6920

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/webui.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
#ifndef _WEBUI_H
1212
#define _WEBUI_H
1313

14+
#ifdef __cplusplus
15+
extern "C" {
16+
#endif
17+
1418
#define WEBUI_VERSION "2.5.0-beta.4"
1519

1620
// Max windows, servers and threads
@@ -1417,4 +1421,8 @@ WEBUI_EXPORT void webui_interface_run_client(size_t window, size_t event_number,
14171421
*/
14181422
WEBUI_EXPORT bool webui_interface_script_client(size_t window, size_t event_number, const char* script, size_t timeout, char* buffer, size_t buffer_length);
14191423

1424+
#ifdef __cplusplus
1425+
}
1426+
#endif
1427+
14201428
#endif /* _WEBUI_H */

0 commit comments

Comments
 (0)