Want more features on Pastebin? Sign Up, it's FREE!
Guest

dak180

By: a guest on Jun 7th, 2010  |  syntax: Diff  |  size: 0.74 KB  |  views: 106  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # HG changeset patch
  2. # Parent 70cb7a4445bd2e00eb5115f22f80e6e25aeae1ad
  3. # User dak180
  4. # Date 1275954368 14400
  5.  
  6. Get rid of "redefine alloca' warnings.
  7.  
  8. diff --git a/gettext-runtime/intl/dcigettext.c b/gettext-runtime/intl/dcigettext.c
  9. --- a/gettext-runtime/intl/dcigettext.c
  10. +++ b/gettext-runtime/intl/dcigettext.c
  11. @@ -30,6 +30,7 @@
  12.  #include <sys/types.h>
  13.  
  14.  #ifdef __GNUC__
  15. +# undef alloca
  16.  # define alloca __builtin_alloca
  17.  # define HAVE_ALLOCA 1
  18.  #else
  19. diff --git a/gettext-runtime/intl/printf.c b/gettext-runtime/intl/printf.c
  20. --- a/gettext-runtime/intl/printf.c
  21. +++ b/gettext-runtime/intl/printf.c
  22. @@ -22,6 +22,7 @@
  23.  #endif
  24.  
  25.  #ifdef __GNUC__
  26. +# undef alloca
  27.  # define alloca __builtin_alloca
  28.  # define HAVE_ALLOCA 1
  29.  #else
clone this paste RAW Paste Data