From: Ben Pfaff Date: Thu, 1 Oct 2009 04:50:13 +0000 (-0700) Subject: Fix numerous warnings about an unknown attribute rpl_malloc on mingw32. X-Git-Tag: fbsd72-i386-build23^0 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a36028028904e2e180aad4c6cf51bb109d2ff16;hp=6a36028028904e2e180aad4c6cf51bb109d2ff16;p=pspp-builds.git Fix numerous warnings about an unknown attribute rpl_malloc on mingw32. On mingw32, Gnulib replaces malloc by defining it as a macro that expands to rpl_malloc. Since MALLOC_LIKE used malloc as an identifier, even though it didn't refer to the malloc function per se, this instance of malloc also expanded to rpl_malloc, confusing GCC. GCC also accepts __malloc__ here, so this commit uses that spelling instead, which avoids the warning. ---