summaryrefslogtreecommitdiff
path: root/sysdeps/generic/unwind-pe.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-04-14 08:52:21 +0000
committerRoland McGrath <roland@gnu.org>2003-04-14 08:52:21 +0000
commit06c150961016ef0ee18a0ccc7d3aaa963ac2c5bf (patch)
treedd15535a49aa24cad75caf726cf9614387164da3 /sysdeps/generic/unwind-pe.h
parent39a46c42f5d31566573fceb6691a547c3b3b1e74 (diff)
2003-04-14 Roland McGrath <roland@redhat.com>
* sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
Diffstat (limited to 'sysdeps/generic/unwind-pe.h')
-rw-r--r--sysdeps/generic/unwind-pe.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/sysdeps/generic/unwind-pe.h b/sysdeps/generic/unwind-pe.h
index f787392881..b6a4777548 100644
--- a/sysdeps/generic/unwind-pe.h
+++ b/sysdeps/generic/unwind-pe.h
@@ -52,25 +52,24 @@
#define DW_EH_PE_indirect 0x80
-#ifdef _LIBC
+#if defined(_LIBC) && !defined(NO_BASE_OF_ENCODED_VALUE)
/* Prototypes. */
extern unsigned int size_of_encoded_value (unsigned char encoding);
extern const unsigned char *read_encoded_value_with_base
(unsigned char encoding, _Unwind_Ptr base,
const unsigned char *p, _Unwind_Ptr *val);
-#endif
-
+#else
/* Given an encoding, return the number of bytes the format occupies.
This is only defined for fixed-size encodings, and so does not
include leb128. */
-static unsigned int
+# ifndef _LIBC
+static
+# endif
+unsigned int
size_of_encoded_value (unsigned char encoding)
-#if defined(_LIBC) && !defined(NO_BASE_OF_ENCODED_VALUE)
-;
-#else
{
if (encoding == DW_EH_PE_omit)
return 0;
@@ -173,16 +172,17 @@ read_sleb128 (const unsigned char *p, _Unwind_Sword *val)
return p;
}
+#if !(defined(_LIBC) && !defined(NO_BASE_OF_ENCODED_VALUE))
/* Load an encoded value from memory at P. The value is returned in VAL;
The function returns P incremented past the value. BASE is as given
by base_of_encoded_value for this encoding in the appropriate context. */
-static const unsigned char *
+# ifndef _LIBC
+static
+# endif
+const unsigned char *
read_encoded_value_with_base (unsigned char encoding, _Unwind_Ptr base,
const unsigned char *p, _Unwind_Ptr *val)
-#if defined(_LIBC) && !defined(NO_BASE_OF_ENCODED_VALUE)
-;
-#else
{
union unaligned
{