summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorabma <spring@abma.de>2017-01-24 01:03:41 +0100
committerabma <spring@abma.de>2017-01-24 01:03:41 +0100
commit4f3a9ac4475cf7973b68dbaa6f3b94b44417ed74 (patch)
treeae3d15503cdca3ba88c86913aca3a8c46e15b60c
parentd7583b1fbb729673d6721a7d2611c06daf04abaf (diff)
downloaddevil-4f3a9ac4475cf7973b68dbaa6f3b94b44417ed74.tar.gz
remove compile errors:
_In_ macro: http://stackoverflow.com/questions/11457328/what-is-in-in-c invalid/duplicate conversation
-rw-r--r--DevIL/src-IL/src/il_dds.cpp2
-rw-r--r--DevIL/src-IL/src/il_pnm.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/DevIL/src-IL/src/il_dds.cpp b/DevIL/src-IL/src/il_dds.cpp
index 46e64344..a1df617b 100644
--- a/DevIL/src-IL/src/il_dds.cpp
+++ b/DevIL/src-IL/src/il_dds.cpp
@@ -632,7 +632,7 @@ ILuint DecodePixelFormat(ILuint *CompFormat)
//--------------------------------------------------------------------------------------
// Return the BPP for a particular format.
//--------------------------------------------------------------------------------------
-static size_t BitsPerPixel(_In_ DXGI_FORMAT fmt)
+static size_t BitsPerPixel(DXGI_FORMAT fmt)
{
switch (fmt)
{
diff --git a/DevIL/src-IL/src/il_pnm.cpp b/DevIL/src-IL/src/il_pnm.cpp
index 2b057035..7809c16e 100644
--- a/DevIL/src-IL/src/il_pnm.cpp
+++ b/DevIL/src-IL/src/il_pnm.cpp
@@ -467,7 +467,7 @@ ILboolean ilReadPam()
else if (!strncmp(TempStr.c_str(), "MAXVAL", 6))
Info.MaxColour = atoi((const char*)SmallBuff);
else if (!strncmp(TempStr.c_str(), "TUPLTYPE", 8))
- Info.TuplType = DecodeTupleType(string((char*)SmallBuff));
+ Info.TuplType = DecodeTupleType(TempStr);
}
//@TODO: Handle other max colors and tuple types