Fix cross compilation (e.g. on Darwin). Following changes to make.tmpl,
[AROS.git] / arch / all-pc / boot / grub2-aros / include / grub / gcrypt / gpg-error.h
blob1e4250284ae5813c8cd3935a091ac8dcfe1531dc
1 #ifndef GRUB_GPG_ERROR_H
2 #define GRUB_GPG_ERROR_H 1
4 #include <grub/crypto.h>
5 typedef enum
7 GPG_ERR_SOURCE_USER_1
9 gpg_err_source_t;
10 #define GPG_ERR_INLINE inline
11 static inline int
12 gpg_err_make (gpg_err_source_t source __attribute__ ((unused)), gpg_err_code_t code)
14 return code;
17 static inline gpg_err_code_t
18 gpg_err_code (gpg_error_t err)
20 return err;
23 static inline gpg_err_source_t
24 gpg_err_source (gpg_error_t err __attribute__ ((unused)))
26 return GPG_ERR_SOURCE_USER_1;
29 gcry_err_code_t
30 gpg_error_from_syserror (void);
32 #endif