Skip to content

Commit b927aa2

Browse files
robUx4rhutsAMD
authored andcommitted
Define LPRI(d|ud|x)64 as Unicode (wide) versions of AMFPRI(d|ud|x)64
It's always true for all platforms.
1 parent 072dee9 commit b927aa2

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

amf/public/include/core/Platform.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,10 @@ typedef signed int HRESULT;
124124
#endif
125125

126126
#define AMFPRId64 "I64d"
127-
#define LPRId64 L"I64d"
128127

129128
#define AMFPRIud64 "Iu64d"
130-
#define LPRIud64 L"Iu64d"
131129

132130
#define AMFPRIx64 "I64x"
133-
#define LPRIx64 L"I64x"
134131

135132
#else // !WIN32 - Linux and Mac
136133

@@ -156,17 +153,18 @@ typedef signed int HRESULT;
156153
#define LPRIx64 L"lx"
157154
#else
158155
#define AMFPRId64 "lld"
159-
#define LPRId64 L"lld"
160156

161157
#define AMFPRIud64 "ulld"
162-
#define LPRIud64 L"ulld"
163158

164159
#define AMFPRIx64 "llx"
165-
#define LPRIx64 L"llx"
166160
#endif
167161

168162
#endif // WIN32
169163

164+
#define LPRId64 AMF_UNICODE(AMFPRId64)
165+
#define LPRIud64 AMF_UNICODE(AMFPRIud64)
166+
#define LPRIx64 AMF_UNICODE(AMFPRIx64)
167+
170168

171169
#if defined(_WIN32)
172170
#define AMF_WEAK __declspec( selectany )

0 commit comments

Comments
 (0)