Closed skyformat99 closed 7 years ago
You're supposed to add the parent of the directory containing those include files to the include path, so that in your application you'd do:
#include <lightmqtt/types.h>
#include <lightmqtt/time.h>
/* ... */
That should be enough to avoid any conflicts.
Thank you for your reply. You're right. This method is ok. However, if you add prefixes, you may be more consistent with the general solution.
agree, It's only a matter of taste. close it.
As a small suggestion, include file name add a prefix: as: lmqtt_client.h ,lmqtt_time.h etc.
Special files "time.h types.h" can easily conflict with system files "time.h types.h " when compile.
thanks.