Skip to content

Commit

Permalink
fix cpp pasting with : does not give a valid preprocessing token
Browse files Browse the repository at this point in the history
msvc and other compilers happily paste a name to a :, but gcc errors.
  • Loading branch information
rurban committed Mar 23, 2017
1 parent 2e4d9f4 commit d3c1687
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/asm-i386.hh
Expand Up @@ -255,7 +255,7 @@
#define FUNBEGIN(name) __declspec(naked) void name () { __asm {
#define FUNEND(name,size_expression) } }
#else
#define FUNBEGIN(name) C(name##:)
#define FUNBEGIN(name) C(name):
#if defined(BSD_SYNTAX)
#define FUNEND(name,size_expression)
#else
Expand Down
2 changes: 1 addition & 1 deletion common/asm-sparc.h
Expand Up @@ -51,4 +51,4 @@
#define DECLARE_FUNCTION(name)
#define FUNEND(name)
#endif
#define FUNBEGIN(name) C(name##:)
#define FUNBEGIN(name) C(name):
2 changes: 1 addition & 1 deletion common/asm-x86_64.h
Expand Up @@ -61,7 +61,7 @@
#define FUNEND(name,size_expression) .size C(name),size_expression
#endif
#endif
#define FUNBEGIN(name) C(name##:)
#define FUNBEGIN(name) C(name):

// Section of frame info for exception handlers
#if defined __APPLE__ && defined __MACH__
Expand Down

0 comments on commit d3c1687

Please sign in to comment.