summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-12-27 04:07:32 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-12-27 04:12:46 +0100
commit109b2aa3a96405c0bf0ec48e2c59f4e97fc5b03e (patch)
tree505cf1f4dc74479756c931b2e119f484227b0be2 /src
parentb6b1fae2432a640757cf34cac8d280be41bd177a (diff)
downloadktechlab-109b2aa3a96405c0bf0ec48e2c59f4e97fc5b03e.tar.gz
ktechlab-109b2aa3a96405c0bf0ec48e2c59f4e97fc5b03e.zip
Fix FTBFS with gpsim >= 0.27
Diffstat (limited to 'src')
-rw-r--r--src/electronics/gpsimprocessor.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/electronics/gpsimprocessor.cpp b/src/electronics/gpsimprocessor.cpp
index 587fc6f..c5ad638 100644
--- a/src/electronics/gpsimprocessor.cpp
+++ b/src/electronics/gpsimprocessor.cpp
@@ -736,7 +736,13 @@ RegisterSet::RegisterSet( pic_processor * picProcessor )
m_nameToRegisterMap[ info->name() ] = info;
}
- RegisterInfo * info = new RegisterInfo( picProcessor->W );
+ RegisterInfo * info = new RegisterInfo(
+#ifdef GPSIM_0_27_0
+ picProcessor->Wreg
+#else
+ picProcessor->W
+#endif
+ );
m_registers.append( info );
m_nameToRegisterMap[ info->name() ] = info;
}