File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 27
27
**
28
28
***********************************************************************/
29
29
30
+ #ifndef DEVICE_H
31
+ #define DEVICE_H
32
+
30
33
// REBOL Device Identifiers:
31
34
// Critical: Must be in same order as Device table in host-device.c
32
35
enum {
@@ -118,8 +121,10 @@ enum {
118
121
#pragma pack(4)
119
122
120
123
// Forward references:
124
+ #ifndef REB_EVENT_H
121
125
typedef struct rebol_device REBDEV ;
122
126
typedef struct rebol_devreq REBREQ ;
127
+ #endif
123
128
124
129
// Commands:
125
130
typedef i32 (* DEVICE_CMD_FUNC )(REBREQ * req );
@@ -208,3 +213,5 @@ struct rebol_devreq {
208
213
#define SET_OPEN (r ) SET_FLAG(((REBREQ*)(r))->flags, RRF_OPEN)
209
214
#define SET_CLOSED (r ) CLR_FLAG(((REBREQ*)(r))->flags, RRF_OPEN)
210
215
#define IS_OPEN (r ) GET_FLAG(((REBREQ*)(r))->flags, RRF_OPEN)
216
+
217
+ #endif //DEVICE_H
Original file line number Diff line number Diff line change 32
32
// Note: size must be 12 bytes on 32-bit or 16 on 64-bit!
33
33
34
34
// Forward references:
35
+ #ifndef VALUE_H
36
+ typedef struct Reb_Series REBSER ;
37
+ #endif
38
+ #ifndef DEVICE_H
35
39
typedef struct rebol_device REBDEV ;
36
40
typedef struct rebol_devreq REBREQ ;
37
- typedef struct Reb_Series REBSER ;
41
+ #endif
38
42
39
43
#pragma pack(4)
40
44
typedef struct rebol_event {
You can’t perform that action at this time.
0 commit comments