add extern "C" for c++

This commit is contained in:
Paolo Marrone 2025-05-14 17:39:03 +02:00
parent d4f263cc00
commit ec0cb6b43c

View File

@ -21,6 +21,9 @@
#ifndef VINCI_H #ifndef VINCI_H
#define VINCI_H #define VINCI_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h> #include <stdint.h>
@ -58,4 +61,7 @@ void window_hide (window *w);
void window_set_data (window *w, void *data); void window_set_data (window *w, void *data);
void* window_get_data (window *w); void* window_get_data (window *w);
#ifdef __cplusplus
}
#endif
#endif #endif