瀏覽代碼

Merge pull request #3544 from jolivain/fix_nios2_build

Add back NIOS2 double conversion detection to fix compile errors
Günter Obiltschnig 4 年之前
父節點
當前提交
49573106c7
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Foundation/src/utils.h

+ 2 - 1
Foundation/src/utils.h

@@ -102,7 +102,8 @@ int main(int argc, char** argv) {
     defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \
     defined(__riscv) || \
     defined(__or1k__) || defined(__arc__) || \
-    defined(__EMSCRIPTEN__)
+    defined(__EMSCRIPTEN__) || \
+    defined(nios2) || defined(__nios2) || defined(__nios2__)
 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
 #elif defined(__mc68000__) || \
     defined(__pnacl__) || defined(__native_client__)