File: 0100-ansi-c.patch

package info (click to toggle)
dmidecode 3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 508 kB
  • sloc: ansic: 7,082; makefile: 95
file content (18 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Petter Reinholdtsen <pere@hungry.com>
Description:
 Make sure the code compiles when using -ansi. Renames non-ANSI C 'inline' to
 '__inline'.

Index: trunk/types.h
===================================================================
--- trunk.orig/types.h
+++ trunk/types.h
@@ -31,7 +31,7 @@ typedef struct {
 #endif
 
 #if defined(ALIGNMENT_WORKAROUND) || defined(BIGENDIAN)
-static inline u64 U64(u32 low, u32 high)
+static __inline u64 U64(u32 low, u32 high)
 {
 	u64 self;