mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-12 23:48:22 -05:00
* Add initial clang tidy / clang format config files * Clang format the entire codebase ``` find ./src -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none find ./include -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none find ./Web -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none find ./dev -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none find ./wrappers -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none ``` * Add a .cmake-format file and reformat CmakeLists.txt with it https://github.com/cheshirekow/cmake_format * Add a clang-format workflow only runs on PRs, only on touched files
20 lines
446 B
C
20 lines
446 B
C
#ifndef PLATFORMDETERMINATION_H
|
|
#define PLATFORMDETERMINATION_H
|
|
|
|
// See also http://stackoverflow.com/questions/5919996/how-to-detect-reliably-mac-os-x-ios-linux-windows-in-c-preprocessor
|
|
#if _WIN64
|
|
# define __ISWINDOWS__
|
|
#elif _WIN32
|
|
# define __ISWINDOWS__
|
|
#elif __APPLE__
|
|
# define __ISAPPLE__
|
|
#elif __linux || __unix || __posix
|
|
# define __ISLINUX__
|
|
#elif __powerpc__
|
|
# define __ISPOWERPC__
|
|
#else
|
|
# pragma error
|
|
#endif
|
|
|
|
#endif
|