Control: tags -1 + upstream

On Thu, May 09, 2013 at 09:47:12AM +0200, Lucas Nussbaum wrote:
> > In file included from /usr/include/stdio.h:937:0,
> >                  from c_src/lru.c:5:
> > /usr/include/x86_64-linux-gnu/bits/stdio2.h:140:1: error: expected 
> > identifier or '(' before '{' token
The code in stdio2.h:

__fortify_function int
dprintf (int __fd, const char *__restrict __fmt, ...)
{

The code in c_src/lru.c:

#include "common.h"
#include <stdio.h>

And the code in c_src/common.h:

#ifdef DEBUG
#define dprintf(format, args...)  printf (format , ## args)
#else
#define dprintf(format, args...)
#endif


So it's a name clash between dprintf macro from c_src/common.h and
dprintf(3) function from glibc/POSIX (they also do totally different
things).

-- 
WBR, wRAR

Attachment: signature.asc
Description: Digital signature

Reply via email to