-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some cross-platform code cleanups. #460
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
352172e
Fix HS_DEBUGGING for non-MSVC compilers.
dpogue 8010f5d
MinGW fix for plGLight isnan usage.
dpogue 79a470d
Some cross-platform MinGW/gcc fixes.
dpogue 598f5f4
Fix compiler error in pnUtArray.
dpogue 9b37590
Set HS_DEBUGGING properly on non-MSVC compilers
zrax ff9fc45
Add POSIX version of error message in plSecureStream::IRead
zrax c1e50a9
Merge pull request #2 from zrax/posix_debugging
dpogue File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,7 +154,7 @@ void plMorphSequenceSDLMod::ISetCurrentStateFrom(const plStateDataRecord* srcSta | |
{ | ||
plKey meshKey; | ||
morphSD->GetStateDataRecord(i)->FindVar(kStrMesh)->Get(&meshKey); | ||
if (meshKey && !meshKey->GetUoid().GetClassType() == plSharedMesh::Index()) | ||
if (meshKey && meshKey->GetUoid().GetClassType() != plSharedMesh::Index()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Heh, I expect the old code here checked that |
||
continue; | ||
|
||
// meshKey will be nil when dealing with non-sharedMesh data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com | |
#include "hsSTLStream.h" | ||
|
||
#if !HS_BUILD_FOR_WIN32 | ||
#include <errno.h> | ||
#define INVALID_HANDLE_VALUE 0 | ||
#endif | ||
|
||
|
@@ -325,7 +326,11 @@ uint32_t plSecureStream::IRead(uint32_t bytes, void* buffer) | |
} | ||
else | ||
{ | ||
#if HS_BUILD_FOR_WIN32 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could include an 'errno' equivalent for POSIX |
||
hsDebugMessage("Error on Windows read", GetLastError()); | ||
#else | ||
hsDebugMessage("Error on POSIX read", errno); | ||
#endif | ||
} | ||
} | ||
return numItems; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it doesn't compile in MinGW otherwise... I agree it shouldn't be needed, but it seems to be used inconsistently in this file. Maybe it has something to do with the ASSERT?