Browse Source

Misc

tags/1.9.6
falkTX 11 years ago
parent
commit
513ec45921
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      source/utils/CarlaBinaryUtils.hpp

+ 4
- 4
source/utils/CarlaBinaryUtils.hpp View File

@@ -58,7 +58,7 @@ private:
const magic_t fMagic; const magic_t fMagic;


CARLA_PREVENT_HEAP_ALLOCATION CARLA_PREVENT_HEAP_ALLOCATION
CARLA_DECLARE_NON_COPY_STRUCT(CarlaMagic)
CARLA_DECLARE_NON_COPY_CLASS(CarlaMagic)
}; };
#endif #endif


@@ -80,9 +80,9 @@ BinaryType getBinaryTypeFromFile(const char* const filename)
if (output == nullptr || output[0] == '\0') if (output == nullptr || output[0] == '\0')
return BINARY_NATIVE; return BINARY_NATIVE;


if (std::strstr(output, "MS Windows") != nullptr && (std::strstr(output, "PE32 executable") != nullptr
|| std::strstr(output, "PE32+ executable") != nullptr))
return (std::strstr(output, "x86-64") != nullptr) ? BINARY_WIN64 : BINARY_WIN32;
if (std::strstr(output, "MS Windows") != nullptr)
if (std::strstr(output, "PE32 executable") != nullptr || std::strstr(output, "PE32+ executable") != nullptr)
return (std::strstr(output, "x86-64") != nullptr) ? BINARY_WIN64 : BINARY_WIN32;


if (std::strstr(output, "ELF") != nullptr) if (std::strstr(output, "ELF") != nullptr)
return (std::strstr(output, "x86-64") != nullptr || std::strstr(output, "aarch64") != nullptr) ? BINARY_POSIX64 : BINARY_POSIX32; return (std::strstr(output, "x86-64") != nullptr || std::strstr(output, "aarch64") != nullptr) ? BINARY_POSIX64 : BINARY_POSIX32;


Loading…
Cancel
Save