change precompile_headers to private to support build in cpp - #37
Conversation
Signed-off-by: canming huang <huangcmzzk@gmail.com>
Slice99 you mean. Interface99 doesn't use
Are you sure that this will solve the problem? We also use a lot of C99 grammar in SmolRTSP itself. Have you tested the library with your fix on C++? |
Yes, I have test on my cpp project: https://github.com/Ncerzzk/rockchip_camera Though with this fix, the cpp source file could not directly use this library too(once cpp source include the headers of this lib, compiler will complain about something relate to C99 grammar like the log above) So I use this library in a C source file, and write a cpp wrapper to use it. |
|
Thanks! |
How about chaning precompile_headers to private?
otherwise it would failed when using this lib in cpp project:(as the c99 grammers used in interface99 are not support by cpp, like restrict..etc)
and make the pre_compile headers to private could solve this problem.