diff options
Diffstat (limited to 'src/hyper/hyper.h')
-rw-r--r-- | src/hyper/hyper.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/hyper/hyper.h b/src/hyper/hyper.h index c4956a5f..9f936764 100644 --- a/src/hyper/hyper.h +++ b/src/hyper/hyper.h @@ -1,7 +1,7 @@ /* Copyright (C) 1991-2002, The Numerical Algorithms Group Ltd. All rights reserved. - Copyright (C) 2007-2010, Gabriel Dos Reis. + Copyright (C) 2007-2016, Gabriel Dos Reis. All rights reserved. Redistribution and use in source and binary forms, with or without @@ -303,4 +303,13 @@ extern GroupItem *gTopOfGroupStack; extern HyperDocPage *gPageBeingParsed; + +// Kludge between the more correct 'array of unsigned char' incoming data, +// and the unprincipled 'pointer to char' parameters of several X11 +// functions below. +template<int N> +inline const char* as_chars(const unsigned char (&ary)[N]) { + return reinterpret_cast<const char*>(&ary[0]); +} + #endif |