preprocessor


DDK preprocessor directives


Does the DDK's build environments pass preprocessor defines to code to specify x86/ia64/x64 for the code to use with #ifdef, etc.?
From what I've seen it does not.
However, when setting up your makefile, make i385, amd64 and ia64 directories and store your separate code files in those.
Then, in your sources file, use the I386_SOURCES=, AMD64_SOURCES= and IA64_SOURCES= vars, respectively, to specify the source files.
This works with .asm files, and should work with all other .c files as well.
Yes. Look at Predefined Macros Also you can see a lot of such statements in DDK include files:
#if defined(_M_MRX000) || defined(_M_ALPHA) || defined(_M_PPC) || defined(_M_IA64) || defined(_M_AMD64)
#define UNALIGNED __unaligned
#if defined(_WIN64)
#define UNALIGNED64 __unaligned
#else
#define UNALIGNED64
#endif
#else
#define UNALIGNED
#define UNALIGNED64
#endif

Related Links

I want to nest include files inside include files. Why cant I do that in Inno Setup?
Discriminating between (small) numbers and everything else in C preprocessor
Defining preprocessor symbols for CLion analyzer
Check multiple conditions at once using m4 preprocessor
XC8 warning: (107) illegal # directive “foo”
Compiling with ocamlbuild and camlp5
How not to output comments using the -C operation in mcpp
C++ Builder File Version not correct
How do you a preprocess statement for #include
Does the preprocessor pass environment variables?
YAML preprocessor / macro processor
Pre-Processing using m4
Is there a practical reason for “#if defined(X) && (X != 0)”?
How to check for presence of a directory in Inno Setup preprocessor?
What are analogs of “#ifdef”, “#ifndef”, “#else”, “#elif”, “#define”, “#undef” in D programming lnaguage?
Image pre-processing in OCR

Categories

HOME
service-worker
uml
go
xml
eclipse
phpword
azure-stream-analytics
design-patterns
angular-formly
pyqt
toolbox
themes
database-normalization
soa
hugo
nested-if
interpolation
settings
x264
python-multithreading
missing-data
vert.x
opengl-3
character
github-enterprise
activecollab
filechannel
radgridview
altera
production
gmm
topology
asciidoctor-pdf
ag
dpdk
short-url
dapper-extensions
tiki-wiki
jackson-modules
openmdao
ntp
calculation
boost-asio
dotspatial
kudu
testbed
deltaspike
instantiation
hibernate-search
numpy-broadcasting
watchman
mcustomscrollbar
plr
knime
xbmc
robomongo
netbeans6.8
facebook-pixel
rserve
android-testing
skin
libjpeg
renaming
atlas
autosar
spring-cloud-feign
drawstring
gcloud-ruby
dbamp
boost-serialization
nio2
false-sharing
qbxml
blitline
sciruby
text-search
jdk1.7
linked-tables
canvg
telepat
entity-framework-4.3
diff3
umlgraph
actionfilterattribute
execve
angular-gettext
ssis-data-flow
pseudo-class
universal-image-loader
jjaql
ray
vsx
file-not-found
gwt-openlayers
visual-studio-express
gd-graph
code-duplication
neos-server
wp7test
mysql-error-2013
qtconcurrent
inkcanvas
jsr286
automationelement
google-ajax-api
rmdir
uipagecontrol
photolibrary
diagrams
load-time
office-2007
dot-emacs
django-piston
tui
escrow
fail-fast-fail-early
application-planning
sqlobject
entitykey
leader

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App