Debian Codegraph @

src/syscfg/lock-obj-pub.mingw32.h

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