Deleted Added
sdiff udiff text old ( 6017:7e310503019e ) new ( 10271:0edd36ea6130 )
full compact
1/*
2 * os.h
3 *
4 * Sleazy OS-specific defines.
5 *
6 * Copyright (c) 2000 Dug Song <dugsong@monkey.org>
7 *
8 * $Id: os.h,v 1.10 2004/05/04 03:19:42 dugsong Exp $

--- 84 unchanged lines hidden (view full) ---

93# define __END_DECLS } /* extern "C" */
94#else
95# define __BEGIN_DECLS
96# define __END_DECLS
97#endif
98
99/* Support for flexible arrays. */
100#undef __flexarr
101#if !defined(__clang__) && defined(__GNUC__) && \
102 ((__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97))
103/* GCC 2.97 supports C99 flexible array members. */
104# define __flexarr []
105#else
106# ifdef __GNUC__
107# define __flexarr [0]
108# else
109# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
110# define __flexarr []
111# else
112/* Some other non-C99 compiler. Approximate with [1]. */
113# define __flexarr [1]
114# endif
115# endif
116#endif
117
118#endif /* DNET_OS_H */