lsalzman / enet

ENet reliable UDP networking library
MIT License
2.77k stars 673 forks source link

time.h conflict #268

Open mp437376671 opened 1 month ago

mp437376671 commented 1 month ago

Why you fucking define the name of a header file as time. h? Don't you know that this will conflict with the standard library? Snipaste_2024-10-19_10-41-23

bjorn commented 1 month ago

Please try to stay polite and maybe count to 10 before opening an issue when you're frustrated.

The time.h file will only conflict with the standard library if you add the include/enet folder to your include path. Don't do this. Add only the include folder and include ENet using:

#include <enet/enet.h>

Many libraries use this style, btw (other examples include libxml and curl).