This is supposed to fix the last error, but for some reason it doesn't.
# The default value is: NO.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-EXPAND_ONLY_PREDEF = NO
+EXPAND_ONLY_PREDEF = YES
+
+# This macro is supposed to expand only the defined macros.
+
+EXPAND_AS_DEFINED = "HAVE_PRE_0_7_6_SYSREPO"
+
+# This is another macro that can provide specific values by hand.
+
+PREDEFINED = "HAVE_PRE_0_7_6_SYSREPO=1"
# If the SEARCH_INCLUDES tag is set to YES, the include files in the
# INCLUDE_PATH will be searched if a #include is found.