Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time.h conflict #268

Open
mp437376671 opened this issue Oct 19, 2024 · 1 comment
Open

time.h conflict #268

mp437376671 opened this issue Oct 19, 2024 · 1 comment

Comments

@mp437376671
Copy link

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
Copy link

bjorn commented Oct 21, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants