Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!dimacs.rutgers.edu!mips!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!bloom-beacon!eru!hagbard!sunic!news.funet.fi!tukki.jyu.fi!jyu.fi!otto From: otto@tukki.jyu.fi (Otto J. Makela) Newsgroups: comp.lang.c Subject: Preprocessor code to figure out endianness ? Message-ID: Date: 9 Sep 90 21:52:13 GMT Sender: news@tukki.jyu.fi (News articles) Organization: Turing Police, Criminal AI section Lines: 8 I seem to remember seeing somewhere a real smart preprocessor construction to figure out the endianness of the machine under which the code was being compiled. I cannot remember where and how, though ? Any pointers ? -- * * * Otto J. Makela * * * * * * * * * * * * * * * * * * * * * * Phone: +358 41 613 847, BBS: +358 41 211 562 (CCITT, Bell 2400/1200/300) * * Mail: Kauppakatu 1 B 18, SF-40100 Jyvaskyla, Finland, EUROPE * * * * Computers Rule 01001111 01001011 * * * * * * * * * * * * * * * * * * *