Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

Commit 1ad4369

Browse files
committed
_TCHAR - removing <tchar.h> and references to TCHAR
1 parent 0715d7a commit 1ad4369

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

test/signalrclient-e2e-tests/signalrclient-e2e-tests.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33

44
#include "stdafx.h"
55
#include <vector>
6-
#include "cpprest/details/basic_types.h"
76
#include "test_utils.h"
87

9-
int wmain(int argc, utility::char_t* argv[])
8+
#if defined(_WIN32)
9+
int wmain(int argc, wchar_t* argv[])
10+
#else
11+
int main(int argc, char* argv[])
12+
#endif
1013
{
1114
get_url(argc, argv);
1215

test/signalrclienttests/signalrclienttests.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33

44
#include "stdafx.h"
55

6-
int _tmain(int argc, _TCHAR* argv[])
6+
#if defined(_WIN32)
7+
int wmain(int argc, wchar_t* argv[])
8+
#else
9+
int main(int argc, char* argv[])
10+
#endif
711
{
812
::testing::InitGoogleTest(&argc, argv);
913
RUN_ALL_TESTS();

test/signalrclienttests/stdafx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@
88
#define NOMINMAX
99
#endif
1010

11-
#include <tchar.h>
12-
1311
#include "gtest/gtest.h"
1412
#include "../../src/signalrclient/event.h"

0 commit comments

Comments
 (0)