Skip to content
Snippets Groups Projects
  1. Jan 14, 2014
    • Ralph Giles's avatar
      Fix malloc_hook warning on glibc 2.17 and later. · 4784e071
      Ralph Giles authored
      In glib 2.17 the __malloc_ptr define was removed in favour
      of using void* directly. Our declaration of mhook using this
      type for the second argument therefore rightly generates a warning
      on modern systems, since the type is assumed to be an int, which
      is too narrow to hold a pointer on 64 bit architectures.
      
      Since it was only ever a define we could use an #ifndef to define
      __malloc_ptr ourselves. However we only use it once, so using void*
      in the signature directly is cleaner. This should cause no problems
      on older systems where it will match either the void* or the char*
      (for non __STDC__ code) the define resolved to.
      4784e071
  2. Jan 13, 2014
  3. Jan 08, 2014
  4. Jan 07, 2014
  5. Jan 06, 2014
  6. Jan 05, 2014
  7. Jan 04, 2014
  8. Dec 31, 2013
  9. Dec 29, 2013
  10. Dec 27, 2013
  11. Dec 23, 2013
  12. Dec 22, 2013
  13. Dec 21, 2013
Loading