Date: Thu, 25 Jul 1996 21:51:29 -0400 Message-Id: <199607260151.VAA17892@delorie.com> From: DJ Delorie To: djgpp-workers Subject: [k3040e4 AT c210 DOT edvz DOT uni-linz DOT ac DOT at: suggestion for ] Opinions on becoming yet more deviant from Posix? ------- Start of forwarded message ------- Return-Path: k3040e4 AT c210 DOT edvz DOT uni-linz DOT ac DOT at From: k3040e4 AT c210 DOT edvz DOT uni-linz DOT ac DOT at (Oberhumer Markus) Subject: suggestion for To: dj AT delorie DOT com Date: Thu, 25 Jul 1996 21:43:09 -0200 (MET DST) Return-Receipt-To: markus DOT oberhumer AT jk DOT uni-linz DOT ac DOT at Return-Read-To: markus DOT oberhumer AT jk DOT uni-linz DOT ac DOT at X-Mailer: ELM [version 2.4 PL23] Content-Type: text =============================================================================== Markus F.X.J. Oberhumer Subject: suggestion for To: DJ Delorie =============================================================================== I've found this trivial file quite handy when porting some Linux programs. Maybe you want to add it to the standard distribution. Markus /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */ #ifndef __dj_include_endian_h_ #define __dj_include_endian_h_ #ifdef __cplusplus extern "C" { #endif #ifndef __dj_ENFORCE_ANSI_FREESTANDING #ifndef __STRICT_ANSI__ #ifndef _POSIX_SOURCE #include #define __LITTLE_ENDIAN LITTLE_ENDIAN #define __BIG_ENDIAN BIG_ENDIAN #define __PDP_ENDIAN PDP_ENDIAN #define __BYTE_ORDER BYTE_ORDER #endif /* !_POSIX_SOURCE */ #endif /* !__STRICT_ANSI__ */ #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */ #ifndef __dj_ENFORCE_FUNCTION_CALLS #endif /* !__dj_ENFORCE_FUNCTION_CALLS */ #ifdef __cplusplus } #endif #endif /* !__dj_include_endian_h_ */ ------- End of forwarded message -------