From owner-freebsd-questions Sun Aug 18 2:32:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 368C837B400 for ; Sun, 18 Aug 2002 02:32:11 -0700 (PDT) Received: from freebsd.giovannelli.com (freebsd.giovannelli.com [194.184.65.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7153643E72 for ; Sun, 18 Aug 2002 02:32:09 -0700 (PDT) (envelope-from gmarco@giovannelli.it) Received: from usul.giovannelli.it (usul.giovannelli.com [10.254.254.4]) by freebsd.giovannelli.com (8.12.5/8.12.5) with ESMTP id g7IBWHvh030034 for ; Sun, 18 Aug 2002 11:32:18 GMT (envelope-from gmarco@giovannelli.it) Message-Id: <5.1.1.6.2.20020818112527.0178a268@194.184.65.4> X-Sender: gmarco@194.184.65.4 X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Sun, 18 Aug 2002 11:32:47 +0200 To: questions@freebsd.org From: Gianmarco Giovannelli Subject: recursive include, why FreeBSD not ? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have a piece of code like this: #if defined(__OpenBSD__) #define __BYTE_ORDER BYTE_ORDER #define __LITTLE_ENDIAN LITTLE_ENDIAN #define __BIG_ENDIAN BIG_ENDIAN #endif [...] #if defined(__FreeBSD__) #include #define __BYTE_ORDER BYTE_ORDER #define __LITTLE_ENDIAN LITTLE_ENDIAN #define __BIG_ENDIAN BIG_ENDIAN #endif If I remove the: #include it doesn't compile while OpenBSD and Linux compile clean... Any idea ? Best Regards, Gianmarco Giovannelli , "Unix expert since yesterday" http://www.gufi.org/~gmarco To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message