comparison libmlk-core/mlk/core/event.h @ 517:6e8f6640e05b

misc: use extern C manually
author David Demelier <markand@malikania.fr>
date Sat, 04 Mar 2023 14:23:59 +0100
parents 5729efd23286
children 2b2844ab4e6b
comparison
equal deleted inserted replaced
516:6af0524913b3 517:6e8f6640e05b
17 */ 17 */
18 18
19 #ifndef MLK_CORE_EVENT_H 19 #ifndef MLK_CORE_EVENT_H
20 #define MLK_CORE_EVENT_H 20 #define MLK_CORE_EVENT_H
21 21
22 #include "core.h"
23 #include "key.h" 22 #include "key.h"
24 #include "mouse.h" 23 #include "mouse.h"
25 #include "gamepad.h" 24 #include "gamepad.h"
26 25
27 enum mlk_event_type { 26 enum mlk_event_type {
75 struct mlk_event_click click; 74 struct mlk_event_click click;
76 struct mlk_event_pad pad; 75 struct mlk_event_pad pad;
77 struct mlk_event_axis axis; 76 struct mlk_event_axis axis;
78 }; 77 };
79 78
80 MLK_CORE_BEGIN_DECLS 79 #if defined(__cplusplus)
80 extern "C" {
81 #endif
81 82
82 int 83 int
83 mlk_event_poll(union mlk_event *); 84 mlk_event_poll(union mlk_event *);
84 85
85 MLK_CORE_END_DECLS 86 #if defined(__cplusplus)
87 }
88 #endif
86 89
87 #endif /* !MLK_CORE_EVENT_H */ 90 #endif /* !MLK_CORE_EVENT_H */