- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 656
Open
Labels
Description
Tomas Ortin Fernandez reported this on 2022-11-27T06:23:14Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=23513
CC List
- Alex Bryan
- Walter Bright (@WalterBright)
Description
When importing ncurses from D, ImportC doesn't seem to be exporting as enums (or at all) ncurses' macro definitions such as A_BOLD, as I have not been able to compile it and get errors like this:
Error: undefined identifier `A_BOLD`
Steps to reproduce:
1- Import ncurses into a D source file with "import ncurses".
2- Initialize ncurses with "initscr()" (that works without any issue)
3- Use any function with a ncurses attribute, for example "addch('a' | A_BOLD)"
4- Attempt to compile it.