From 8c72f0a62922cd9402230690e8f6417575134c9c Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Wed, 7 Feb 2018 17:36:04 +0300 Subject: [PATCH] Support globalState example on Windows. (#1289) --- platformLibs/src/platform/windows/posix.def | 2 +- samples/globalState/src/main/kotlin/Global.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platformLibs/src/platform/windows/posix.def b/platformLibs/src/platform/windows/posix.def index 8bac979e42f..a18c77ec09d 100644 --- a/platformLibs/src/platform/windows/posix.def +++ b/platformLibs/src/platform/windows/posix.def @@ -1,7 +1,7 @@ package = platform.posix headers = assert.h complex.h dirent.h errno.h fcntl.h \ fenv.h float.h ftw.h getopt.h inttypes.h libgen.h limits.h \ - locale.h math.h memory.h sched.h search.h semaphore.h \ + locale.h math.h memory.h pthread.h sched.h search.h semaphore.h \ setjmp.h signal.h stdint.h stdio.h stdlib.h string.h \ time.h uchar.h unistd.h utime.h wchar.h wctype.h noStringConversion = send sendto recv diff --git a/samples/globalState/src/main/kotlin/Global.kt b/samples/globalState/src/main/kotlin/Global.kt index 76386abaf74..8e166dbbce5 100644 --- a/samples/globalState/src/main/kotlin/Global.kt +++ b/samples/globalState/src/main/kotlin/Global.kt @@ -31,7 +31,7 @@ data class SharedData(val string: String, val int: Int, val member: SharedDataMe fun dumpShared(prefix: String): Unit { println(""" - $prefix: ${pthread_self().rawValue} x=${sharedData.x} f=${sharedData.f} s=${sharedData.string!!.toKString()} + $prefix: ${pthread_self()} x=${sharedData.x} f=${sharedData.f} s=${sharedData.string!!.toKString()} """.trimIndent()) }