summaryrefslogtreecommitdiff
path: root/libcutils/socket_local_server_unix.cpp
diff options
context:
space:
mode:
authorSpencer Low <CompareAndSwap@gmail.com>2015-08-02 18:13:54 -0700
committerSpencer Low <CompareAndSwap@gmail.com>2015-08-02 18:13:54 -0700
commite347c1dd475ab83b2ec483f43879b105be145ea2 (patch)
tree0c997047d6716e98656fa033daa833fef0caaf36 /libcutils/socket_local_server_unix.cpp
parentc70ac57db0df9736f50a6b1fe29b151292b09e6b (diff)
adb: win32: define UNICODE/_UNICODE, Unicode error messages, misc
Define the UNICODE and _UNICODE preprocessor symbols to make passing char* to Ansi/Unicode-agnostic Windows and C Runtime APIs break the build. The solution is to call wide Windows and C Runtime APIs and use widen(utf8).c_str(). Most code was already calling wide APIs. Defining these symbols makes a call to CreateEvent() (which previously mapped to CreateEventA()) turn into a call to CreateEventW(). Make SystemErrorCodeToString() use Unicode. Add various comments. Change-Id: I9b212412348a29826718e897a486489e1f142d16 Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions