[2983] in BarnOwl Developers
[barnowl/barnowl] 2cbe7c: Protect memrchr prototype by !HAVE_DECL_MEMCHR ins...
daemon@ATHENA.MIT.EDU (noreply@github.com)
Sat Mar 19 23:23:42 2011
Date: Sat, 19 Mar 2011 20:23:39 -0700
To: barnowl-dev@mit.edu
From: noreply@github.com
Branch: refs/heads/master
Home: https://github.com/barnowl/barnowl
Commit: 2cbe7c3517a87213fa15ba9dcafe22e8df026bc5
https://github.com/barnowl/barnowl/commit/2cbe7c3517a87213fa15ba9dcafe22e8df026bc5
Author: Anders Kaseorg <andersk@mit.edu>
Date: 2011-03-19 (Sat, 19 Mar 2011)
Changed paths:
M compat/compat.h
M configure.ac
Log Message:
-----------
Protect memrchr prototype by !HAVE_DECL_MEMCHR instead of !HAVE_MEMCHR
This fixes
viewwin.c:393:7: warning: implicit declaration of function ‘memrchr’
on platforms where PERL_CFLAGS doesn’t contain -D_GNU_SOURCE.
!HAVE_MEMRCHR means that memrchr is undefined at link time, so we need
to provide our own implementation; but !HAVE_DECL_MEMRCHR means that
memrchr is not declared at compile time, so we need to provide our own
prototype.
http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00037.html
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Commit: 4dde585fcac5c152e22a20684548501eaf803869
https://github.com/barnowl/barnowl/commit/4dde585fcac5c152e22a20684548501eaf803869
Author: Anders Kaseorg <andersk@mit.edu>
Date: 2011-03-19 (Sat, 19 Mar 2011)
Changed paths:
M compat/compat.h
Log Message:
-----------
compat/compat.h: Add #include guards
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Compare: https://github.com/barnowl/barnowl/compare/41f0cf3...4dde585