[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Detect usage of GNU libc.
From: |
Johan Rydberg |
Subject: |
Detect usage of GNU libc. |
Date: |
Fri, 16 Jan 2004 13:25:29 +0100 |
For a header that I have to install (i.e., there is no possibility to
use a config.h file) I need to detect if the libc used is glibc. How
can I do this? features.h define __GLIBC__, but are features.h available
in other libc implementations?
The reason for all this is that I want to be able to use the endian
swap functions in byteswap.h, whenever they are available.
--
Johan Rydberg, Free Software Developer, Sweden
http://rtmk.sf.net | http://www.nongnu.org/guss/
Playing The Darkness - Stuck in A Rut
- Detect usage of GNU libc.,
Johan Rydberg <=