From 5a329ded5c2b6940d6f9fb02ef294185f6a7200c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Tue, 7 Sep 2010 14:58:10 +0000 Subject: [PATCH] workaround weird gcc behaviour it might a bug in the 4 years old gcc version, but __ASSEMBLER__ is not defined when preprocessing .S files with -std=gnu99 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28026 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/demac/libdemac/predictor-cf.S | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/codecs/demac/libdemac/predictor-cf.S b/apps/codecs/demac/libdemac/predictor-cf.S index c76d7f629a..801f60136d 100644 --- a/apps/codecs/demac/libdemac/predictor-cf.S +++ b/apps/codecs/demac/libdemac/predictor-cf.S @@ -23,6 +23,12 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA */ + +/* workaround gcc 3.4.6 -std=gnu99 */ +#ifndef __ASSEMBLER +#define __ASSEMBLER__ +#endif + #include "demac_config.h" /* NOTE: The following need to be kept in sync with parser.h */