tidy.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. Index: build/gmake/Makefile
  2. --- build/gmake/Makefile.orig 2007-01-21 21:20:58 +0100
  3. +++ build/gmake/Makefile 2007-02-02 08:29:47 +0100
  4. @@ -91,12 +91,12 @@
  5. # For optimised builds, flags such as "-O2" should be added and -D_DEBUG=1
  6. # disabled.
  7. CC= gcc
  8. -CFLAGS= -g -pedantic -Wall -Wno-switch -Wno-parentheses -I $(INCDIR)
  9. +CFLAGS= -I$(INCDIR)
  10. # flags only supported with gcc 3.x
  11. CFLAGS += -Wunused-parameter
  12. OTHERCFLAGS=
  13. -OTHERCFLAGS+= -D_DEBUG=1
  14. +# OTHERCFLAGS+= -D_DEBUG=1
  15. # OTHERCFLAGS+= -fvisibility=hidden -DTIDY_EXPORT='__attribute__((visibility("default")))'
  16. ifdef SUPPORT_UTF16_ENCODINGS
  17. CFLAGS += -DSUPPORT_UTF16_ENCODINGS=$(SUPPORT_UTF16_ENCODINGS)
  18. Index: include/platform.h
  19. --- include/platform.h.orig Sun Jan 21 21:36:21 2007
  20. +++ include/platform.h Wed Mar 12 09:30:39 2008
  21. @@ -511,9 +511,11 @@
  22. #include <sys/types.h>
  23. #endif
  24. #if !defined(HPUX_OS) && !defined(CYGWIN_OS) && !defined(MAC_OS_X) && !defined(BE_OS) && !defined(SOLARIS_OS) && !defined(BSD_BASED_OS) && !defined(OSF_OS) && !defined(IRIX_OS) && !defined(AIX_OS) && !defined(LINUX_OS)
  25. +# undef uint
  26. typedef unsigned int uint;
  27. #endif
  28. #if defined(HPUX_OS) || defined(CYGWIN_OS) || defined(MAC_OS) || defined(BSD_BASED_OS) || defined(_WIN32)
  29. +# undef ulong
  30. typedef unsigned long ulong;
  31. #endif