|
Packit |
fc043f |
## w32-lock-obj-pub.in - Include fragment for gpg-error.h -*- c-*-
|
|
Packit |
fc043f |
## Copyright (C) 2014 g10 Code GmbH
|
|
Packit |
fc043f |
##
|
|
Packit |
fc043f |
## This file is free software; as a special exception the author gives
|
|
Packit |
fc043f |
## unlimited permission to copy and/or distribute it, with or without
|
|
Packit |
fc043f |
## modifications, as long as this notice is preserved.
|
|
Packit |
fc043f |
##
|
|
Packit |
fc043f |
## This file is distributed in the hope that it will be useful, but
|
|
Packit |
fc043f |
## WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
|
Packit |
fc043f |
## implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
Packit |
fc043f |
##
|
|
Packit |
fc043f |
##
|
|
Packit |
fc043f |
## This file defines the public version of the lock object for 32 bit
|
|
Packit |
fc043f |
## Windows. The actual used version is in w32-lock-obj.h. This file
|
|
Packit |
fc043f |
## is inserted into gpg-error.h by mkheader.c. The tool
|
|
Packit |
fc043f |
## gen-w32-lock-obj.c has been used to construct it.
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
#ifdef _WIN64
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
#pragma pack(push, 8)
|
|
Packit |
fc043f |
typedef struct
|
|
Packit |
fc043f |
{
|
|
Packit |
fc043f |
volatile unsigned char priv[56];
|
|
Packit |
fc043f |
} gpgrt_lock_t;
|
|
Packit |
fc043f |
#pragma pack(pop)
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
#define GPGRT_LOCK_INITIALIZER {{1,0,0,0,0,0,0,0,255,255,255,255, \
|
|
Packit |
fc043f |
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \
|
|
Packit |
fc043f |
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \
|
|
Packit |
fc043f |
0,0,0,0,0,0,0,0,0,0,0,0}}
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
#else
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
#pragma pack(push, 8)
|
|
Packit |
fc043f |
typedef struct
|
|
Packit |
fc043f |
{
|
|
Packit |
fc043f |
volatile unsigned char priv[36];
|
|
Packit |
fc043f |
} gpgrt_lock_t;
|
|
Packit |
fc043f |
#pragma pack(pop)
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
#define GPGRT_LOCK_INITIALIZER {{1,0,0,0,0,0,0,0,255,255,255,255, \
|
|
Packit |
fc043f |
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \
|
|
Packit |
fc043f |
0,0,0,0,0,0,0,0}}
|
|
Packit |
fc043f |
#endif
|