aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/fcall.h8
-rw-r--r--include/thread.h1
2 files changed, 5 insertions, 4 deletions
diff --git a/include/fcall.h b/include/fcall.h
index 20ffe386..f85487bd 100644
--- a/include/fcall.h
+++ b/include/fcall.h
@@ -1,7 +1,7 @@
#ifndef _FCALL_H_
#define _FCALL_H_ 1
-#if defined(__cplusplus)
-extern "C" {
+#ifdef __cplusplus
+extern "C" {
#endif
/*
#pragma src "/sys/src/libc/9sys"
@@ -9,7 +9,6 @@ extern "C" {
*/
#define VERSION9P "9P2000"
-
#define MAXWELEM 16
typedef
@@ -123,7 +122,8 @@ int read9pmsg(int, void*, uint);
#pragma varargck type "M" ulong
#pragma varargck type "D" Dir*
*/
-#if defined(__cplusplus)
+
+#ifdef __cplusplus
}
#endif
#endif
diff --git a/include/thread.h b/include/thread.h
index 9c5d2d09..e9dc96e0 100644
--- a/include/thread.h
+++ b/include/thread.h
@@ -88,6 +88,7 @@ int send(Channel *c, void *v);
int sendp(Channel *c, void *v);
int sendul(Channel *c, unsigned long v);
int threadcreate(void (*f)(void *arg), void *arg, unsigned int stacksize);
+int threadcreateidle(void (*f)(void*), void*, unsigned int);
void** threaddata(void);
void threadexits(char *);
void threadexitsall(char *);