diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2024-05-15 06:11:47 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2024-05-15 06:11:47 (GMT) |
commit | f252166690f537cdf6853e45a6dc21ed058d0360 (patch) | |
tree | e9b6264f630034135d81e635844e8b2775345cde /src/common | |
parent | 7358dc2001d27d3c5a0c0fe39288b1a310a6d89e (diff) |
Define all function attributes in a centralized header.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/Makefile.am | 1 | ||||
-rw-r--r-- | src/common/compiler.h | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/src/common/Makefile.am b/src/common/Makefile.am index 9d0885e..af18ab8 100644 --- a/src/common/Makefile.am +++ b/src/common/Makefile.am @@ -55,6 +55,7 @@ endif libcommon4_la_SOURCES = \ asm.h asm.c \ bits.h bits.c \ + compiler.h \ extstr.h extstr.c \ pathname.h pathname.c \ xdg.h xdg.c diff --git a/src/common/compiler.h b/src/common/compiler.h new file mode 100644 index 0000000..2585e47 --- /dev/null +++ b/src/common/compiler.h @@ -0,0 +1,38 @@ + +/* Chrysalide - Outil d'analyse de fichiers binaires + * compiler.h - prototypes pour le regroupement d'astuces à destination du compilateur + * + * Copyright (C) 2024 Cyrille Bagard + * + * This file is part of Chrysalide. + * + * Chrysalide is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * Chrysalide is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Chrysalide. If not, see <http://www.gnu.org/licenses/>. + */ + + +#ifndef _COMMON_COMPILER_H +#define _COMMON_COMPILER_H + + +/** + * Raccourcis d'attributs communs. + */ + +#define __private __attribute__((visibility("hidden"))) + +#define __weak __attribute__((weak)) + + + +#endif /* _COMMON_COMPILER_H */ |