Skip to content
Snippets Groups Projects
Commit 43f30849 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

I guess Win32 still doesn't have stdbool.h

parent 82275147
No related branches found
No related tags found
No related merge requests found
Pipeline #5287 failed
......@@ -2,8 +2,6 @@
#ifdef _WIN32
#include "gen_defs.h" // For windows.h
bool
rwlock_init(rwlock_t *lock)
{
......
#ifndef RWLOCKWRAP_H
#define RWLOCKWRAP_H
#include <stdbool.h>
#if defined(__unix__)
#include <pthread.h>
#include <stdbool.h>
typedef pthread_rwlock_t rwlock_t;
#define rwlock_init(lock) (pthread_rwlock_init(lock, NULL) == 0)
......@@ -17,6 +16,7 @@ typedef pthread_rwlock_t rwlock_t;
#elif defined(_WIN32)
#include "gen_defs.h" // For windows.h and bool :(
#include "threadwrap.h"
typedef struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment