Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b98a64
commit aa62a02
Showing
4 changed files
with
57 additions
and
3 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include "VersionInfo.h" | ||
|
||
std::string VersionInfo::GetVersionInfo() | ||
{ | ||
#if defined __linux__ | ||
return std::string("Linux"); | ||
#elif TARGET_OS_MAC | ||
return std::string("Mac OS X"); | ||
#elif defined _WIN32 || defined _WIN64 | ||
return std::string("Windows"); | ||
#else | ||
return std::string("Unknown OS"); | ||
#endif | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include <string> | ||
|
||
class VersionInfo | ||
{ | ||
public: | ||
static std::string GetVersionInfo(); | ||
}; |