mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
12 lines
292 B
Diff
12 lines
292 B
Diff
--- a/utils.h
|
|
+++ b/utils.h
|
|
@@ -15,7 +15,7 @@
|
|
#endif
|
|
|
|
/* Portability macros */
|
|
-#ifdef __GNUC__
|
|
+#if defined __GNUC__ && ! defined __clang__
|
|
# define NORETURN __attribute__((noreturn))
|
|
# define MALLOC_FREE __attribute__((malloc(free)))
|
|
# define NONNULL __attribute__((returns_nonnull))
|