1
0
This repository has been archived on 2025-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
Files
siadrive/3rd-party/Dokan Library-1.0.2/include/fuse/fuse_sem_fix.h
Scott E. Graves 99da074b21 Dokan API
2017-02-10 15:09:15 -06:00

28 lines
467 B
C

#ifndef FUSE_SEM_FIX_H_
#define FUSE_SEM_FIX_H_
#ifdef __CYGWIN__
#include <semaphore.h>
#ifdef __cplusplus
extern "C" {
#endif
int my_sem_init(sem_t *sem, int pshared, int initial);
int my_sem_destroy(sem_t *sem);
int my_sem_post (sem_t * sem);
int my_sem_wait (sem_t * sem);
#define sem_init my_sem_init
#define sem_destroy my_sem_destroy
#define sem_wait my_sem_wait
#define sem_post my_sem_post
#ifdef __cplusplus
};
#endif
#endif
#endif //FUSE_SEM_FIX_H_