summaryrefslogtreecommitdiff
path: root/common/defines.h
diff options
context:
space:
mode:
authorleo2005-12-20 20:22:46 +0000
committerleo2005-12-20 20:22:46 +0000
commit98f3bd8740246fe88c3db3278fe533dc2f368d12 (patch)
tree076cfa089cd19faabc144deca4d0fb303d97cb07 /common/defines.h
parent85c3a7f5afcc88696d50866525588756e6bf80c3 (diff)
Updated the Pieces Library Manager to use the new categories.
git-svn-id: http://svn.leocad.org/trunk@443 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/defines.h')
-rw-r--r--common/defines.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/defines.h b/common/defines.h
index e5e7e7d..d1b50a7 100644
--- a/common/defines.h
+++ b/common/defines.h
@@ -92,6 +92,11 @@ int stricmp(const char* str1, const char* str2);
#define M_PI 3.14159265
#endif
+#define LC_FOURCC(ch0, ch1, ch2, ch3) (lcuint32)((lcuint32)(lcuint8)(ch0) | ((lcuint32)(lcuint8)(ch1) << 8) | \
+ ((lcuint32)(lcuint8)(ch2) << 16) | ((lcuint32)(lcuint8)(ch3) << 24 ))
+
+#define LC_FILE_ID LC_FOURCC('L','C','D', 0)
+
#define LC_CONNECTIONS 2 // Different piece connections
#define LC_STR_VERSION "LeoCAD 0.7 Project\0\0" // char[20]