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

GB_NO_WINDOWS_H doesn't compile #49

Open
lackhoa opened this issue Jan 26, 2024 · 0 comments
Open

GB_NO_WINDOWS_H doesn't compile #49

lackhoa opened this issue Jan 26, 2024 · 0 comments

Comments

@lackhoa
Copy link

lackhoa commented Jan 26, 2024

The Windows version of gbMutex still depends on CRITICAL_SECTION, which is in windows.h.

// Mutex
typedef struct gbMutex {
#if defined(GB_SYSTEM_WINDOWS)
	CRITICAL_SECTION win32_critical_section;
#else
	pthread_mutex_t pthread_mutex;
	pthread_mutexattr_t pthread_mutexattr;
#endif
} gbMutex;
@lackhoa lackhoa changed the title GB_NO_WINDOWS_H doesn't actually work. GB_NO_WINDOWS_H doesn't compile Jan 26, 2024
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

1 participant