summaryrefslogtreecommitdiff
path: root/ldmicro/includes
diff options
context:
space:
mode:
authorRr422018-05-25 18:12:31 +0530
committerRr422018-05-25 18:12:31 +0530
commitdcbd1d4e87abd5a90f903296a42a1464c007cc67 (patch)
tree1469332869fa67d9a1b585e3b69094e38057801b /ldmicro/includes
parentddfbba31a547018c65f9da6c70257411bc224f6d (diff)
downloadLDMicroGtk-dcbd1d4e87abd5a90f903296a42a1464c007cc67.tar.gz
LDMicroGtk-dcbd1d4e87abd5a90f903296a42a1464c007cc67.tar.bz2
LDMicroGtk-dcbd1d4e87abd5a90f903296a42a1464c007cc67.zip
Added linuxUI (analog to windows.h)
Diffstat (limited to 'ldmicro/includes')
-rw-r--r--ldmicro/includes/ldmicroVC.h3
-rw-r--r--ldmicro/includes/ldmicroVC.h.in3
-rw-r--r--ldmicro/includes/linuxUI/linuxUI.h50
3 files changed, 56 insertions, 0 deletions
diff --git a/ldmicro/includes/ldmicroVC.h b/ldmicro/includes/ldmicroVC.h
new file mode 100644
index 0000000..400bc42
--- /dev/null
+++ b/ldmicro/includes/ldmicroVC.h
@@ -0,0 +1,3 @@
+/// version control
+#define LDMicro_VERSION_MAJOR 1
+#define LDMicro_VERSION_MINOR 0
diff --git a/ldmicro/includes/ldmicroVC.h.in b/ldmicro/includes/ldmicroVC.h.in
new file mode 100644
index 0000000..46c0e4a
--- /dev/null
+++ b/ldmicro/includes/ldmicroVC.h.in
@@ -0,0 +1,3 @@
+/// version control
+#define LDMicro_VERSION_MAJOR @LDMicro_VERSION_MAJOR@
+#define LDMicro_VERSION_MINOR @LDMicro_VERSION_MINOR@
diff --git a/ldmicro/includes/linuxUI/linuxUI.h b/ldmicro/includes/linuxUI/linuxUI.h
index e69de29..e084e73 100644
--- a/ldmicro/includes/linuxUI/linuxUI.h
+++ b/ldmicro/includes/linuxUI/linuxUI.h
@@ -0,0 +1,50 @@
+/// includes
+#include <gtk/gtk.h>
+#include <linux/limits.h>
+#include <stdio.h>
+#include <inttypes.h>
+
+/// version control
+#define LDMicro_VERSION_MAJOR 1
+#define LDMicro_VERSION_MINOR 0
+
+/// common windows referances for linux
+/// definitions
+#define MAX_PATH PATH_MAX
+/// CALLBACK or __stdcall os defined empty
+#define CALLBACK
+
+/// typedefs
+//typedef int64_t __int64;
+typedef bool BOOL;
+typedef GdkRGBA COLORREF;
+typedef unsigned char BYTE;
+typedef unsigned int DWORD;
+typedef void* PVOID;
+typedef PVOID HANDLE;
+typedef HANDLE HINSTANCE;
+typedef HANDLE HWND;
+typedef HANDLE HDC;
+typedef HANDLE HMENU;
+
+/*
+/// Check if system is x64 or x86 using GCC
+#if __GNUC__
+#if __x86_64__ || __ppc64__
+/// system is x64
+typedef unsigned __int64 UINT_PTR;
+#else
+/// system is x86
+typedef unsigned int UINT_PTR;
+#endif
+#endif
+*/
+
+/// Check if system is x64 or x86
+#if defined(__UNIX64)
+typedef uint64_t UINT_PTR;
+#else
+typedef unsigned int UINT_PTR;
+#endif
+
+typedef UINT_PTR WPARAM; \ No newline at end of file