0002-libraw_x3f.cpp-remove-Byte-order-mark.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 0f2507bfe30f2df10dfc38b94cdfde5594902b8e Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Fri, 12 Feb 2016 10:00:12 +0100
  4. Subject: [PATCH] libraw_x3f.cpp: remove Byte order mark
  5. The U+FEFF character, which is a Byte order mark, at the beginning of
  6. libraw_x3f.cpp, prevents gcc 4.3.x from building this file:
  7. src/../internal/libraw_x3f.cpp:1: error: stray '\357' in program
  8. src/../internal/libraw_x3f.cpp:1: error: stray '\273' in program
  9. src/../internal/libraw_x3f.cpp:1: error: stray '\277' in program
  10. Support in gcc for the Byte order mark has been added in gcc
  11. 4.4.x. Since anyway this Byte order mark is not useful, we simply
  12. remove it.
  13. See https://en.wikipedia.org/wiki/Byte_order_mark for more details.
  14. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  15. ---
  16. Submitted upstream at:
  17. https://github.com/LibRaw/LibRaw/pull/61
  18. internal/libraw_x3f.cpp | 2 +-
  19. 1 file changed, 1 insertion(+), 1 deletion(-)
  20. diff --git a/internal/libraw_x3f.cpp b/internal/libraw_x3f.cpp
  21. index dbf28c1..67047ab 100644
  22. --- a/internal/libraw_x3f.cpp
  23. +++ b/internal/libraw_x3f.cpp
  24. @@ -1,4 +1,4 @@
  25. -/* Library for accessing X3F Files
  26. +/* Library for accessing X3F Files
  27. ----------------------------------------------------------------
  28. BSD-style License
  29. ----------------------------------------------------------------
  30. --
  31. 2.6.4