Skip to content

Commit e945619

Browse files
committed
8293088: Fix compilation with the new Visual Studio preprocessor
Reviewed-by: ihse
1 parent 730ced9 commit e945619

File tree

2 files changed

+6
-6
lines changed
  • src
    • java.desktop/windows/native/libawt/java2d/d3d
    • java.security.jgss/windows/native/libsspi_bridge

2 files changed

+6
-6
lines changed

src/java.desktop/windows/native/libawt/java2d/d3d/D3DPipeline.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
#include "Trace.h"
6363

6464
#define DebugPrintD3DError(res, msg) \
65-
J2dTraceLn1(J2D_TRACE_ERROR, "D3D Error: " ## msg ## " res=%d", res)
65+
J2dTraceLn1(J2D_TRACE_ERROR, "D3D Error: " msg " res=%d", res)
6666

6767
#endif /*D3D_PPL_DLL*/
6868

@@ -87,9 +87,9 @@ do { \
8787
#define SAFE_PRINTLN(RES) \
8888
do { \
8989
if ((RES)!= NULL) { \
90-
J2dTraceLn1(J2D_TRACE_VERBOSE, " " ## #RES ## "=0x%x", (RES)); \
90+
J2dTraceLn1(J2D_TRACE_VERBOSE, " " #RES "=0x%x", (RES)); \
9191
} else { \
92-
J2dTraceLn(J2D_TRACE_VERBOSE, " " ## #RES ## "=NULL"); \
92+
J2dTraceLn(J2D_TRACE_VERBOSE, " " #RES "=NULL"); \
9393
} \
9494
} while (0);
9595
#else // DEBUG
@@ -114,12 +114,12 @@ do { \
114114

115115
#define RETURN_STATUS_IF_EXP_FAILED(EXPR) \
116116
if (FAILED(res = (EXPR))) { \
117-
DebugPrintD3DError(res, " " ## #EXPR ## " failed in " ## __FILE__); \
117+
DebugPrintD3DError(res, " " #EXPR " failed in " __FILE__); \
118118
return res; \
119119
} else do { } while (0)
120120

121121
#define RETURN_STATUS_IF_FAILED(status) \
122122
if (FAILED((status))) { \
123-
DebugPrintD3DError((status), " failed in " ## __FILE__ ## ", return;");\
123+
DebugPrintD3DError((status), " failed in " __FILE__ ", return;");\
124124
return (status); \
125125
} else do { } while (0)

src/java.security.jgss/windows/native/libsspi_bridge/sspi.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
// A debugging macro
5656
#define PP(fmt, ...) \
5757
if (trace) { \
58-
fprintf(stderr, "[SSPI:%ld] "fmt"\n", __LINE__, ##__VA_ARGS__); \
58+
fprintf(stderr, "[SSPI:%ld] " fmt "\n", __LINE__, ##__VA_ARGS__); \
5959
fflush(stderr); \
6060
}
6161
#define SEC_SUCCESS(status) ((*minor_status = (status)), (status) >= SEC_E_OK)

0 commit comments

Comments
 (0)