[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #6481] sio.h minor fix

From: Iordan Neshev
Subject: [lwip-devel] [patch #6481] sio.h minor fix
Date: Thu, 27 Mar 2008 08:04:35 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.50727)

Follow-up Comment #3, patch #6481 (project lwip):

> What is missing is a global #ifndef _SIO_H_.

Yes. This is definetely right. After I added it I no 
longer need the missing "#define __sio_fd_t_defined"

It would be good if this was possible:

#ifndef  sio_fd_t /* instead of __sio_fd_t_defined  */
typedef void * sio_fd_t; 

Unfortunately my compiler does not understand it.

> ...the function prototypes also don't define the macro...

For the functions in sio.h I do not need to define anywhere anything. I just
write (for example) this in sio.c :

void sio_send(u8_t ch, sio_fd_t psio)
  WriteRS1(ch); /* send char over UART1 */

>... their #ifdef statement. I think the #ifdef is included...

Did you mean #ifNdef ?

If I understand you right, anyone who has this type already defined by the
system  should add this:
#define __sio_fd_t_defined
in his cc.h. Right?


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]