libvisual-0.4.0-inlinedefineconflict.patch 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. diff -ru libvisual-0.4.0.orig/libvisual/lv_cache.c libvisual-0.4.0/libvisual/lv_cache.c
  2. --- libvisual-0.4.0.orig/libvisual/lv_cache.c 2009-03-07 17:17:38.000000000 +0000
  3. +++ libvisual-0.4.0/libvisual/lv_cache.c 2009-03-07 17:25:26.000000000 +0000
  4. @@ -32,7 +32,7 @@
  5. static int cache_dtor (VisObject *object);
  6. static int cache_remove_list_entry (VisCache *cache, VisListEntry **le);
  7. -static inline void handle_request_reset (VisCache *cache, VisListEntry *le);
  8. +static lv_inline void handle_request_reset (VisCache *cache, VisListEntry *le);
  9. static int cache_dtor (VisObject *object)
  10. {
  11. @@ -74,7 +74,7 @@
  12. }
  13. -static inline void handle_request_reset (VisCache *cache, VisListEntry *le)
  14. +static lv_inline void handle_request_reset (VisCache *cache, VisListEntry *le)
  15. {
  16. VisCacheEntry *centry;
  17. diff -ru libvisual-0.4.0.orig/libvisual/lv_defines.h libvisual-0.4.0/libvisual/lv_defines.h
  18. --- libvisual-0.4.0.orig/libvisual/lv_defines.h 2009-03-07 17:17:38.000000000 +0000
  19. +++ libvisual-0.4.0/libvisual/lv_defines.h 2009-03-07 17:24:17.000000000 +0000
  20. @@ -63,13 +63,13 @@
  21. /* Compiler specific optimalization macros */
  22. #if __GNUC__ >= 3
  23. -# define inline inline __attribute__ ((always_inline))
  24. +# define lv_inline inline __attribute__ ((always_inline))
  25. # define __malloc __attribute__ ((malloc))
  26. # define __packed __attribute__ ((packed))
  27. # define VIS_LIKELY(x) __builtin_expect (!!(x), 1)
  28. # define VIS_UNLIKELY(x) __builtin_expect (!!(x), 0)
  29. #else
  30. -# define inline /* no inline */
  31. +# define lv_inline /* no inline */
  32. # define __malloc /* no malloc */
  33. # define __packed /* no packed */
  34. # define VIS_LIKELY(x) (x)
  35. diff -ru libvisual-0.4.0.orig/libvisual/lv_time.h libvisual-0.4.0/libvisual/lv_time.h
  36. --- libvisual-0.4.0.orig/libvisual/lv_time.h 2009-03-07 17:17:38.000000000 +0000
  37. +++ libvisual-0.4.0/libvisual/lv_time.h 2009-03-07 17:25:15.000000000 +0000
  38. @@ -101,7 +101,7 @@
  39. *
  40. * @return Nothing.
  41. */
  42. -static inline void visual_timer_tsc_get (uint32_t *lo, uint32_t *hi)
  43. +static lv_inline void visual_timer_tsc_get (uint32_t *lo, uint32_t *hi)
  44. {
  45. #if defined(VISUAL_ARCH_X86) || defined(VISUAL_ARCH_X86_64)
  46. __asm __volatile
  47. @@ -115,7 +115,7 @@
  48. }
  49. /* FIXME use uint64_t here, make sure type exists */
  50. -static inline unsigned long long visual_timer_tsc_get_returned ()
  51. +static lv_inline unsigned long long visual_timer_tsc_get_returned ()
  52. {
  53. uint32_t lo, hi;