#15 macosx: curses.h allready declares LL

major
closed-fixed
nobody
driver (15)
5
2001-10-26
2001-10-19
Guillaume Filion
No

When trying to compile a driver that uses curses
on macosx, I get this error:
-----
../../shared/LL.h:126: `LL' redeclared as different
kind of symbol
/usr/include/curses.h:108: previous declaration of
`LL'
-----

Here's macosx's declaration of LL (check the 4th
element of the 4th line):
-----
extern char *AL, *BC, *BT, *CD, *CE, *CL, *CM,
*CR, *CS, *DC, *DL,
*DM, *DO, *ED, *EI, *K0, *K1, *K2, *K3,
*K4, *K5, *K6,
*K7, *K8, *K9, *HO, *IC, *IM, *IP, *KD, *KE,
*KH, *KL,
*KR, *KS, *KU, *LL, *MA, *ND, *NL, *RC,
*SC, *SE, *SF,
*SO, *SR, *TA, *TE, *TI, *UC, *UE, *UP,
*US, *VB, *VS,
*VE, *al, *dl, *sf, *sr,
*AL_PARM, *DL_PARM, *UP_PARM,
*DOWN_PARM, *LEFT_PARM,
*RIGHT_PARM;
-----
and here's ours':
-----
typedef struct LL {
LL_node head, tail;
LL_node *current;
} LL;
-----

The only way I can see we can solve this is by
changing our name to something else, maibe
LinkedList.

I've also attached MacOSX's curses.h file for
reference.

Discussion

  • MacOSX's curses.h

     
    Attachments
  • Logged In: YES
    user_id=53970

    Fixed thanks to a patch by Collin Baillie.

    Here are the files changed and their revision:
    -----
    Checking in clients/lcdproc/mem.c;
    /cvsroot/lcdproc/lcdproc/clients/lcdproc/mem.c,v <-- mem.c
    new revision: 1.13; previous revision: 1.12
    done
    Checking in server/client_data.h;
    /cvsroot/lcdproc/lcdproc/server/client_data.h,v <--
    client_data.h
    new revision: 1.7; previous revision: 1.6
    done
    Checking in server/clients.c;
    /cvsroot/lcdproc/lcdproc/server/clients.c,v <-- clients.c
    new revision: 1.7; previous revision: 1.6
    done
    Checking in server/clients.h;
    /cvsroot/lcdproc/lcdproc/server/clients.h,v <-- clients.h
    new revision: 1.7; previous revision: 1.6
    done
    Checking in server/drivers.c;
    /cvsroot/lcdproc/lcdproc/server/drivers.c,v <-- drivers.c
    new revision: 1.2; previous revision: 1.1
    done
    Checking in server/render.c;
    /cvsroot/lcdproc/lcdproc/server/render.c,v <-- render.c
    new revision: 1.13; previous revision: 1.12
    done
    Checking in server/screen.h;
    /cvsroot/lcdproc/lcdproc/server/screen.h,v <-- screen.h
    new revision: 1.7; previous revision: 1.6
    done
    Checking in server/screenlist.c;
    /cvsroot/lcdproc/lcdproc/server/screenlist.c,v <--
    screenlist.c
    new revision: 1.8; previous revision: 1.7
    done
    Checking in server/screenlist.h;
    /cvsroot/lcdproc/lcdproc/server/screenlist.h,v <--
    screenlist.h
    new revision: 1.4; previous revision: 1.3
    done
    Checking in server/widget.c;
    /cvsroot/lcdproc/lcdproc/server/widget.c,v <-- widget.c
    new revision: 1.9; previous revision: 1.8
    done
    Checking in server/widget.h;
    /cvsroot/lcdproc/lcdproc/server/widget.h,v <-- widget.h
    new revision: 1.8; previous revision: 1.7
    done
    Checking in server/drivers/lcd.c;
    /cvsroot/lcdproc/lcdproc/server/drivers/lcd.c,v <-- lcd.c
    new revision: 1.31; previous revision: 1.30
    done
    Checking in shared/LL.c;
    /cvsroot/lcdproc/lcdproc/shared/LL.c,v <-- LL.c
    new revision: 1.6; previous revision: 1.5
    done
    Checking in shared/LL.h;
    /cvsroot/lcdproc/lcdproc/shared/LL.h,v <-- LL.h
    new revision: 1.5; previous revision: 1.4
    done
    -----

     
    • status: open --> closed-fixed