1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
## w32-lock-obj-pub.in - Include fragment for gpg-error.h -*- c-*-
## Copyright (C) 2014 g10 Code GmbH
##
## This file is free software; as a special exception the author gives
## unlimited permission to copy and/or distribute it, with or without
## modifications, as long as this notice is preserved.
##
## This file is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
## implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
##
##
## This file defines the public version of the lock object for 32 bit
## Windows. The actual used version is in w32-lock-obj.h. This file
## is inserted into gpg-error.h by mkheader.c. The tool
## gen-w32-lock-obj.c has been used to construct it.
#ifdef _WIN64
#pragma pack(push, 8)
typedef struct
{
volatile unsigned char priv[56];
} gpgrt_lock_t;
#pragma pack(pop)
#define GPGRT_LOCK_INITIALIZER {{1,0,0,0,0,0,0,0,255,255,255,255, \
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0,0,0,0,0}}
#else
#pragma pack(push, 8)
typedef struct
{
volatile unsigned char priv[36];
} gpgrt_lock_t;
#pragma pack(pop)
#define GPGRT_LOCK_INITIALIZER {{1,0,0,0,0,0,0,0,255,255,255,255, \
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0}}
#endif
|