hitag2crack: support clang
This commit is contained in:
1 parent
07a8369058
commit
1e40db9a35
1 file changed
+2
-2
@@ -208,7 +208,7 @@
|
|||||||
|
|
||||||
// We want the crypto functions to be as fast as possible, so optimize!
|
// We want the crypto functions to be as fast as possible, so optimize!
|
||||||
// The best compiler optimization in Microchip's free XC32 edition is -O1
|
// The best compiler optimization in Microchip's free XC32 edition is -O1
|
||||||
#ifndef __APPLE__
|
#if defined(__GNUC__) && !defined(__clang__)
|
||||||
#pragma GCC optimize("O1")
|
#pragma GCC optimize("O1")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -369,6 +369,6 @@ uint32_t hitag2_nstep(Hitag_State *pstate, uint32_t steps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// end of crypto core, revert to default optimization level
|
// end of crypto core, revert to default optimization level
|
||||||
#ifndef __APPLE__
|
#if defined(__GNUC__) && !defined(__clang__)
|
||||||
#pragma GCC reset_options
|
#pragma GCC reset_options
|
||||||
#endif
|
#endif
|
||||||
Reference in new issue
Block a user