From 13d7b33a04023fb1f99ddbbeb911cc9a138b454f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 5 Mar 2016 18:18:22 +0100 Subject: [PATCH] geckolib: Define a few MOZ_* things to hack around more easily. --- ports/geckolib/tools/regen_style_structs.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ports/geckolib/tools/regen_style_structs.sh b/ports/geckolib/tools/regen_style_structs.sh index 7d18fbbd28d..ab2e225609f 100755 --- a/ports/geckolib/tools/regen_style_structs.sh +++ b/ports/geckolib/tools/regen_style_structs.sh @@ -1,7 +1,7 @@ #!/bin/bash # Run in the tools directory. -cd `dirname $0` +cd "$(dirname $0)" if [ $# -ne 1 ]; then echo "Usage: $0 /path/to/gecko/objdir" @@ -56,6 +56,8 @@ fi $CLANG_SEARCH_DIRS \ "-I$DIST_INCLUDE" "-I$DIST_INCLUDE/nspr" \ $PLATFORM_DEPENDENT_DEFINES \ + -DMOZ_STRING_WITH_OBSOLETE_API=0 \ + -DMOZ_STYLO_BINDINGS=1 \ -DDEBUG=1 -DTRACING=1 -DOS_POSIX=1 \ -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL \ -include "$1/mozilla-config.h" \