ridefinire bool

M

Marco Dalai

Ciao a tutti,

una domanda da incompetente come al solito.

Ho un codice scritto da altra gente che in vari punti esegue operazioni
considerando che un bool occupi quanto un char.
Il mio problema è che con il gcc sul mac che devo usare io un bool
occupa come un int e non come un char.
Mi chiedevo se fosse possibile "ridefinire" il tipo bool in modo che
occupi come un char o se dovrò necessariamente mettere mano all'interno
del codice per aggiustare le varie cose.

Grazie a tutti in anticipo
Marco
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top