forked from NatLabRockies/OpenStudio
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathosruby_config.h
More file actions
Latest commit
19 lines (15 loc) · 514 Bytes
/
Copy pathosruby_config.h
File metadata and controls
19 lines (15 loc) · 514 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndefINCLUDE_OSRUBY_H
#defineINCLUDE_OSRUBY_H 1
// Force RUBY_EXTERN to be defined as "undecorated" extern for static ruby
// We want to get rid of the declspec appended by the ruby build system, because
// it causes a compiler warning that manifests as error
#ifdefRUBY_EXTERN
#undef RUBY_EXTERN
#endif
#defineRUBY_EXTERN extern
// Unclear why Ruby defines inline as __inline in config.h,
// but we want to undo that or embedded ruby and bindings wont compile
#ifdefinline
#undef inline
#endif
#endif