Skip to content

Commit e89ac84

Browse files
committed
fix: possible redefinition of macro and typo
1 parent 2b155b6 commit e89ac84

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

include/webui_extensions.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@ extern "C" {
2424
* - In other cases, as long as the webui.c file is not included directly,
2525
* you might need to define this macro in your compiler settings
2626
*/
27-
#define WEBUI_EXTENSIONS_API
27+
#ifndef WEBUI_EXTENSION_API
28+
#define WEBUI_EXTENSION_API
29+
#endif
30+
31+
#ifndef WEBUI_EXPORT
32+
#define WEBUI_EXPORT
33+
#warning "WEBUI_EXPORT not defined; Please include webui.h before webui_extensions.h"
34+
#endif
2835

2936
#include <stdbool.h>
3037
#include <stddef.h>

0 commit comments

Comments
 (0)