Skip to content

Commit 1372ca0

Browse files
dbs4261stefanatwork
authored andcommitted
Add missing RTC_NAMESPACE definition to rtcore_config
`rtcore_config.h.in does` not define `RTC_NAMESPACE` when `EMBREE_API_NAMESPACE` is not defined when it should be defined but empty. This can cause a problem with forward declarations like the following: ```c++ RTC_NAMESPACE_BEGIN typedef struct RTCSceneTy* RTCScene; RTC_NAMESPACE_END void my_function(RTC_NAMESPACE::RTCScene scene); ```
1 parent 756ff35 commit 1372ca0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernels/rtcore_config.h.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
# define RTC_API_EXTERN_CPP
4040
# undef EMBREE_API_NAMESPACE
4141
#else
42+
# define RTC_NAMESPACE
4243
# define RTC_NAMESPACE_BEGIN
4344
# define RTC_NAMESPACE_END
4445
# define RTC_NAMESPACE_USE

0 commit comments

Comments
 (0)