Browse files

a few extra comments for MSVC 2008 and prior projects.

Signed-off-by: Marcos Paulo Berteli Slomp <>
  • Loading branch information...
1 parent fdb88fd commit e2d9b45bfe9d105e8cabc7b048f734303f24ec22 @slomp slomp committed with qdot Jan 4, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 platform/windows/README.TXT
13 platform/windows/README.TXT
@@ -59,13 +59,26 @@ Such implicit casts then have to be made explicit:
Fortunately, they are not many, and it can be done in a couple of minutes.
This should impose a minimal burden to the Win32 repository maintainers.
+NOTE: Sometimes, even when "Compile as C++ Code" is specified, the build will insist
+on using the C-compiler to compile .c files (this happens with MSVC versions prior to
+2010). To work around this, just set the "Compile As" to "Default", click "Apply" and
+then set it back to "Compile as C++ Code (/TP)", click "Apply" and then "OK".
Another problem is that Visual C++ does not offer the <unistd.h> and <stdbool.h>
headers. However, they are pretty simple to be emulated; the <stdbool.h> will
actually be a dummy header because C++ already defines the "bool" type semantics,
while the <unistd.h> has to simply #include <stdint.h> and define the "ssize_t"
type. The implementation of these headers are located at:
+NOTE: MSVC versions prior to 2010 do not provide the <stdint.h> header. An ISO C9x
+compilant <stdint.h> header for such MSVC versions can be found at the wikipedia entry
+of stdint.h (at the "External links" section of the page):
+or directly through this link:
+A copy of such header will be also provided within libfreenect in the future.
The "freenect_internal.h" makes use of GCC's "__attribute__" keyword, and there is no
such a thing in Visual C++. Fortunately, this header is not exposed for the library
user and is just required during the library build. There are a few simple solutions

0 comments on commit e2d9b45

Please sign in to comment.