diff options
author | Francois Pichet <pichet2000@gmail.com> | 2011-04-29 08:56:07 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2011-04-29 08:56:07 +0000 |
commit | dbad1d1599ad0cadbb5ce3ebc0a7cb8ddbc5e190 (patch) | |
tree | d1b7d357802cbeb0c2877d6225cb2afdd1bddd8d /llvm/runtime/libprofile/CommonProfiling.c | |
parent | f0e3f044709f87f56a5147ccf091cbdff035c762 (diff) | |
download | bcm5719-llvm-dbad1d1599ad0cadbb5ce3ebc0a7cb8ddbc5e190.tar.gz bcm5719-llvm-dbad1d1599ad0cadbb5ce3ebc0a7cb8ddbc5e190.zip |
Unbreak the MSVC build:
- unistd.h doesn't exist with MSVC
- inline must be __inline in Microsoft C
- atexit cannot take a function declared as void f(), must be void f(void).
llvm-svn: 130490
Diffstat (limited to 'llvm/runtime/libprofile/CommonProfiling.c')
-rw-r--r-- | llvm/runtime/libprofile/CommonProfiling.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/runtime/libprofile/CommonProfiling.c b/llvm/runtime/libprofile/CommonProfiling.c index 1c1771c3063..210a5e5ab78 100644 --- a/llvm/runtime/libprofile/CommonProfiling.c +++ b/llvm/runtime/libprofile/CommonProfiling.c @@ -19,7 +19,11 @@ #include <fcntl.h> #include <stdio.h> #include <string.h> +#if !defined(_MSC_VER) && !defined(__MINGW32__) #include <unistd.h> +#else +#include <io.h> +#endif #include <stdlib.h> static char *SavedArgs = 0; |