diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-03-26 21:43:48 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-05-04 12:45:09 +0400 |
commit | 40a139d57c2438ef2c6792b971d5f5b5ae9b5a92 (patch) | |
tree | 94a2d232e9a329fcddd6706725dc3b09139407d2 | |
parent | c655b1c482f0acc47d4fdc4674bdf4af7d1c45f9 (diff) |
version.h: break the defines and reindent the file for better readability
-rw-r--r-- | include/version.h | 61 |
1 files changed, 37 insertions, 24 deletions
diff --git a/include/version.h b/include/version.h index e2c5cb2a3..35b8c1f0d 100644 --- a/include/version.h +++ b/include/version.h @@ -38,9 +38,9 @@ #ifndef _T
#if !defined(ISPP_INVOKED) && (defined(UNICODE) || defined(_UNICODE))
-#define _T(text) L##text
+#define _T(text) L##text
#else
-#define _T(text) text
+#define _T(text) text
#endif
#endif
@@ -48,46 +48,59 @@ #include "version_rev.h"
#endif
-#define DO_MAKE_STR(x) _T(#x)
-#define MAKE_STR(x) DO_MAKE_STR(x)
+#define DO_MAKE_STR(x) _T(#x)
+#define MAKE_STR(x) DO_MAKE_STR(x)
-#define MPC_VERSION_MAJOR 1
-#define MPC_VERSION_MINOR 6
-#define MPC_VERSION_PATCH 8
+#define MPC_VERSION_MAJOR 1
+#define MPC_VERSION_MINOR 6
+#define MPC_VERSION_PATCH 8
-#define MPC_BETA_RELEASE 1
+#define MPC_BETA_RELEASE 1
+
+#define MPC_COMP_NAME_STR _T("MPC-HC Team")
+#define MPC_COPYRIGHT_STR _T("Copyright © 2002-2013 all contributors, see Authors.txt")
+#define MPC_VERSION_COMMENTS WEBSITE_URL
-#define MPC_COMP_NAME_STR _T("MPC-HC Team")
-#define MPC_COPYRIGHT_STR _T("Copyright © 2002-2013 all contributors, see Authors.txt")
-#define MPC_VERSION_COMMENTS WEBSITE_URL
#ifndef ISPP_INVOKED
#ifdef NO_VERSION_REV_NEEDED
-#define MPC_VERSION_NUM MPC_VERSION_MAJOR,MPC_VERSION_MINOR,MPC_VERSION_PATCH,0
-#define MPC_VERSION_STR MAKE_STR(MPC_VERSION_MAJOR) _T(".") MAKE_STR(MPC_VERSION_MINOR) _T(".") MAKE_STR(MPC_VERSION_PATCH) _T(".0")
-#define MPC_VERSION_STR_FULL MPC_VERSION_STR
-#else
-#define MPC_VERSION_NUM MPC_VERSION_MAJOR,MPC_VERSION_MINOR,MPC_VERSION_PATCH,MPC_VERSION_REV
-#define MPC_VERSION_STR MAKE_STR(MPC_VERSION_MAJOR) _T(".") MAKE_STR(MPC_VERSION_MINOR) _T(".") MAKE_STR(MPC_VERSION_PATCH) _T(".") MAKE_STR(MPC_VERSION_REV)
-#define MPC_VERSION_STR_FULL MAKE_STR(MPC_VERSION_MAJOR) _T(".") MAKE_STR(MPC_VERSION_MINOR) _T(".") MAKE_STR(MPC_VERSION_PATCH) _T(".") MPC_VERSION_REV_FULL
+
+#define MPC_VERSION_NUM MPC_VERSION_MAJOR,MPC_VERSION_MINOR,MPC_VERSION_PATCH,0
+#define MPC_VERSION_STR MAKE_STR(MPC_VERSION_MAJOR) _T(".") \
+ MAKE_STR(MPC_VERSION_MINOR) _T(".") \
+ MAKE_STR(MPC_VERSION_PATCH) _T(".0")
+#define MPC_VERSION_STR_FULL MPC_VERSION_STR
+
+#else // !NO_VERSION_REV_NEEDED
+
+#define MPC_VERSION_NUM MPC_VERSION_MAJOR,MPC_VERSION_MINOR,MPC_VERSION_PATCH,MPC_VERSION_REV
+#define MPC_VERSION_STR MAKE_STR(MPC_VERSION_MAJOR) _T(".") \
+ MAKE_STR(MPC_VERSION_MINOR) _T(".") \
+ MAKE_STR(MPC_VERSION_PATCH) _T(".") \
+ MAKE_STR(MPC_VERSION_REV)
+#define MPC_VERSION_STR_FULL MAKE_STR(MPC_VERSION_MAJOR) _T(".") \
+ MAKE_STR(MPC_VERSION_MINOR) _T(".") \
+ MAKE_STR(MPC_VERSION_PATCH) _T(".") \
+ MPC_VERSION_REV_FULL
#endif // NO_VERSION_REV_NEEDED
#endif // ISPP_INVOKED
+
#if MPC_BETA_RELEASE
-#define MPC_VERSION_BETA _T("Beta")
+#define MPC_VERSION_BETA _T("Beta")
#endif
#ifdef _WIN64
-#define MPC_VERSION_ARCH _T("x64")
+#define MPC_VERSION_ARCH _T("x64")
#else
-#define MPC_VERSION_ARCH _T("x86")
+#define MPC_VERSION_ARCH _T("x86")
#endif
-#define MPC_DX_SDK_MONTH _T("June")
-#define MPC_DX_SDK_YEAR 2010
-#define MPC_DX_SDK_NUMBER 43
+#define MPC_DX_SDK_MONTH _T("June")
+#define MPC_DX_SDK_YEAR 2010
+#define MPC_DX_SDK_NUMBER 43
#endif // MPC_VERSION_H
|