···40404141/* @@@ The IA-64 ABI uses uint64 throughout. Most places this is
4242 inefficient for 32-bit and smaller machines. */
4343-typedef unsigned _Unwind_Word __attribute__((__mode__(__unwind_word__)));
4444-typedef signed _Unwind_Sword __attribute__((__mode__(__unwind_word__)));
4343+typedef unsigned long _Unwind_Word /*__attribute__((__mode__(__unwind_word__)))*/;
4444+typedef signed long _Unwind_Sword /*__attribute__((__mode__(__unwind_word__)))*/;
4545#if defined(__ia64__) && defined(__hpux__)
4646typedef unsigned _Unwind_Ptr __attribute__((__mode__(__word__)));
4747#else
···57575858/* The unwind interface uses reason codes in several contexts to
5959 identify the reasons for failures or other actions. */
6060+#ifndef __clang__
6061typedef enum
6162{
6263 _URC_NO_REASON = 0,
···6970 _URC_INSTALL_CONTEXT = 7,
7071 _URC_CONTINUE_UNWIND = 8
7172} _Unwind_Reason_Code;
7272-7373+#endif
73747475/* The unwind interface uses a pointer to an exception header object
7576 as its representation of an exception being thrown. In general, the
+1
src/libunwind-darwin/unwind-pe.h
···28282929#ifndef GCC_UNWIND_PE_H
3030#define GCC_UNWIND_PE_H
3131+#include "unwind-generic.h"
31323233/* If using C++, references to abort have to be qualified with std::. */
3334#if __cplusplus
+2-2
src/util/log.h
···3737#define FLAGS_LOG 1
38383939#ifdef NOLOG
4040-# define LOG if (0) cout
4040+# define LOG if (0) std::cout
4141# define LOGF(...) if (0) fprintf(stderr, __VA_ARGS__)
4242#else
4343-# define LOG if (FLAGS_LOG) cerr
4343+# define LOG if (FLAGS_LOG) std::cerr
4444# define LOGF(...) if (FLAGS_LOG) fprintf(stderr, __VA_ARGS__)
4545#endif
4646