X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=compiler%2Fcompiler.h;h=8dec350b9f9eb4e1c495e5c7aa1174b60169cbd3;hb=c77a99e74e88a8ea1a8c0904aef3f7c81e07273f;hp=c1923ddd8e6019025d631f6d2ba4a648e7c8a469;hpb=3b2e1464ae58caf42c74ab4bdeaa5eae7c38a23f;p=fio.git diff --git a/compiler/compiler.h b/compiler/compiler.h index c1923ddd..8dec350b 100644 --- a/compiler/compiler.h +++ b/compiler/compiler.h @@ -15,8 +15,12 @@ #define uninitialized_var(x) x = x -#ifndef __weak -#define __weak __attribute__((weak)) +#ifndef _weak +#ifndef __CYGWIN__ +#define _weak __attribute__((weak)) +#else +#define _weak +#endif #endif #endif