projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added support for 64 bit input file support.
[idzebra-moved-to-github.git]
/
include
/
zebra-lock.h
diff --git
a/include/zebra-lock.h
b/include/zebra-lock.h
index
1f4fba6
..
44de1f4
100644
(file)
--- a/
include/zebra-lock.h
+++ b/
include/zebra-lock.h
@@
-2,6
+2,9
@@
#ifndef ZEBRA_LOCK_H
#define ZEBRA_LOCK_H
#ifndef ZEBRA_LOCK_H
#define ZEBRA_LOCK_H
+#ifdef WIN32
+#include <windows.h>
+#endif
#if HAVE_PTHREAD_H
#include <pthread.h>
#endif
#if HAVE_PTHREAD_H
#include <pthread.h>
#endif
@@
-11,11
+14,16
@@
YAZ_BEGIN_CDECL
typedef struct {
YAZ_BEGIN_CDECL
typedef struct {
-#if HAVE_PTHREAD_H
- pthread_mutex_t mutex;
+#ifdef WIN32
+ CRITICAL_SECTION mutex;
#else
#else
+# if HAVE_PTHREAD_H
+ pthread_mutex_t mutex;
+# else
int dummy;
int dummy;
+# endif
#endif
#endif
+ int state;
} Zebra_mutex;
YAZ_EXPORT int zebra_mutex_init (Zebra_mutex *p);
} Zebra_mutex;
YAZ_EXPORT int zebra_mutex_init (Zebra_mutex *p);