delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/07/25/21:52:09

Date: Thu, 25 Jul 1996 21:51:29 -0400
Message-Id: <199607260151.VAA17892@delorie.com>
From: DJ Delorie <dj>
To: djgpp-workers
Subject: [k3040e4 AT c210 DOT edvz DOT uni-linz DOT ac DOT at: suggestion for <endian.h>]

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 <endian.h>
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 <markus DOT oberhumer AT jk DOT uni-linz DOT ac DOT at>

Subject: suggestion for <endian.h>
To: DJ Delorie <dj AT delorie DOT com>
===============================================================================

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 <machine/endian.h>

#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 -------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019