Skip to content

Commit

Permalink
Merge pull request #72 from apnadkarni/gcc-vc-preprocessor-fix
Browse files Browse the repository at this point in the history
Make STRING_ macros work with both gcc and MS VC
  • Loading branch information
petasis authored Jan 4, 2025
2 parents 75c2d05 + 89ab9f4 commit cbdd3df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions win/OleDND.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ extern "C" {
* Windows Clipboard formats.
****************************************************************************/
#define WIDEN(x) L##x
#define WSTRINGIFY(x) WIDEN(#x)
#define STRING_(s) {s, WSTRINGIFY(s)}
#define STRING_(s) {s, WIDEN(#s)}
typedef struct {
UINT cfFormat;
const WCHAR *name;
Expand Down

0 comments on commit cbdd3df

Please sign in to comment.