| | |
preprocessor uint to unsigned int
![]() |
•
•
Join Date: Aug 2008
Posts: 149
Reputation:
Solved Threads: 8
I've made a program using gcc as a compiler.
In my loops I've been using a uint type as the type of my loop variable.
But now it seems that some systems doesn't support this type.
Can I make a preprocessor conditional that does a
#define uint to unsigned int
if typename uint doesn't exist
thanks in advance
In my loops I've been using a uint type as the type of my loop variable.
But now it seems that some systems doesn't support this type.
Can I make a preprocessor conditional that does a
#define uint to unsigned int
if typename uint doesn't exist
thanks in advance
Last edited by monkey_king; Nov 23rd, 2008 at 8:56 pm. Reason: add more info
"Jedenfalls bin ich überzeugt, daß der Alte nicht würfelt."
"I became very sensitive to what will happen to all this and all of us." -Two geniuses named Albert
"I became very sensitive to what will happen to all this and all of us." -Two geniuses named Albert
•
•
•
•
I've made a program using gcc as a compiler.
In my loops I've been using a uint type as the type of my loop variable.
But now it seems that some systems doesn't support this type.
Can I make a preprocessor conditional that does a
#define uint to unsigned int
if typename uint doesn't exist
thanks in advance
unsigned int rather than a type that doesn't exist in most compilers. You've now seen the reason we try to always recommend not using compiler-specific enhancements. The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
![]() |
Other Threads in the C Forum
- Previous Thread: Examination Management system
- Next Thread: rank of a matrix
| Thread Tools | Search this Thread |
#include adobe api array arrays asterisks binarysearch calculate char cm copyanyfile copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createcopyoffile createprocess() csyntax database directory dynamic feet fflush fgets file fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o include incrementoperators input interest kernel kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix meter microsoft motherboard mqqueue mysql number odf open openwebfoundation owf pattern pdf performance pointer posix probleminc process program programming pyramidusingturboccodes radix read recursion recv repetition research scanf scheduling segmentationfault send sequential shape socket socketprograming stack standard string systemcall turboc unix user voidmain() wab win32api windows.h






