windows cross-compliation

This commit is contained in:
onezplpl 2024-07-14 19:27:52 -04:00
parent f27d19b6c8
commit 887dfbe5c4
No known key found for this signature in database
GPG key ID: 7EC026A136F9EEC3
4 changed files with 14 additions and 5 deletions

4
main.c
View file

@ -93,6 +93,8 @@ void *render_chunks(void *args) {
return NULL;
}
#define WinMain main
int main(void) {
if (!glfwInit())
exit(EXIT_FAILURE);
@ -259,7 +261,7 @@ int main(void) {
glBufferSubData(GL_ARRAY_BUFFER, 0, (long)cube_count * sizeof(Vertex),
cube);
if (thread_id != 0)
pthread_join(thread_id,NULL);
pthread_join(thread_id, NULL);
thread_id = 0;
}