Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from ilpianista/pine64-hacks
Fix build with GCC 6
- Loading branch information
Showing
6 changed files
with
39 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef __LINUX_COMPILER_H | ||
#error "Please don't include <linux/compiler-gcc6.h> directly, include <linux/compiler.h> instead." | ||
#endif | ||
|
||
/* | ||
* Force always-inline if the user requests it so via the .config, | ||
* or if gcc is too old: | ||
*/ | ||
#if !defined(CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING) || \ | ||
!defined(CONFIG_OPTIMIZE_INLINING) || (__GNUC__ < 4) | ||
// Force gnu89-inline. | ||
#define inline inline __attribute__((always_inline)) __attribute__((__gnu_inline__)) | ||
#define __inline__ __inline__ __attribute__((always_inline)) __attribute__((__gnu_inline__)) | ||
#define __inline __inline __attribute__((always_inline)) __attribute__((__gnu_inline__)) | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters