CCS: Don't assume exists
authorPhil Miller <mille121@illinois.edu>
Tue, 20 Oct 2009 00:49:48 +0000 (00:49 +0000)
committerPhil Miller <mille121@illinois.edu>
Tue, 20 Oct 2009 00:49:48 +0000 (00:49 +0000)
src/conv-ccs/ccs-builtins.C

index f55720cf69234d7e874c93be10ed3542d747343b..c5cf82981bb9fb7293f4741da29ba2571623c8c1 100644 (file)
@@ -273,8 +273,15 @@ void CpdMachineArchitecture(char *msg) {
   reply[2] = sizeof(int);
   // get the size of an "long"
   reply[3] = sizeof(long);
+#if CMK_LONG_LONG_DEFINED
   // get the size of an "long long"
   reply[4] = sizeof(long long);
+#else
+  // Per Filippo, the debugger will be fine with this. It should never
+  // come up, since configure didn't detect support for `long long` on
+  // the machine.
+  reply[4] = 0;
+#endif
   // get the size of an "bool"
   reply[5] = sizeof(bool);
   CcsSendReply(6, (void*)reply);