From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 24 Nov 2011 14:26:48 +0100 From: Andrew Lunn Message-ID: <20111124132648.GC6836@lunn.ch> References: <1322131238-11036-1-git-send-email-sven@narfation.org> <201111242101.21710.lindner_marek@yahoo.de> <1323728.0ybshCSZ9s@sven-laptop.home.narfation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1323728.0ybshCSZ9s@sven-laptop.home.narfation.org> Subject: Re: [B.A.T.M.A.N.] [RFC] batman-adv: Move build compat stuff to Makefile Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking Cc: Marek Lindner > I would be even happier when we also could remove the '#include "compat.h"' > from main.h somehow, but I had no good (and working) idea. Hi Sven Could you build solution using the gcc option: -include file Process file as if #include "file" appeared as the first line of the primary source file. Pass this when compiling out of tree by appending it to CFLAGS? The hard thing is the ordering. compat.h will be first, before all other header files. Andrew