Skip to content
Snippets Groups Projects
  • Pavel Puchkin's avatar
    f7f24d14
    Fix compiling if no endian.h found · f7f24d14
    Pavel Puchkin authored
    
    f7d65091 introduces error when no endian.h found in the system.
    
    Since "CHECK_INCLUDE_FILE" returns empty string instead of "0", when
    "cmake_config.h" is generated it has "#define CMAKE_HAVE_ENDIAN_H " line.
    Later we have "#define HAVE_ENDIAN_H CMAKE_HAVE_ENDIAN_H" in the
    "config.h", an thus "HAVE_ENDIAN_H" is also empty sting. Because of
    this, "#if HAVE_ENDIAN_H" is incorrect preprocessor directive.
    
    Signed-off-by: default avatarCraig Robbins <kde.psych@gmail.com>
    f7f24d14
    History
    Fix compiling if no endian.h found
    Pavel Puchkin authored
    
    f7d65091 introduces error when no endian.h found in the system.
    
    Since "CHECK_INCLUDE_FILE" returns empty string instead of "0", when
    "cmake_config.h" is generated it has "#define CMAKE_HAVE_ENDIAN_H " line.
    Later we have "#define HAVE_ENDIAN_H CMAKE_HAVE_ENDIAN_H" in the
    "config.h", an thus "HAVE_ENDIAN_H" is also empty sting. Because of
    this, "#if HAVE_ENDIAN_H" is incorrect preprocessor directive.
    
    Signed-off-by: default avatarCraig Robbins <kde.psych@gmail.com>