Author: tkreuzer
Date: Mon May 16 16:11:31 2011
New Revision: 51791
URL:
http://svn.reactos.org/svn/reactos?rev=51791&view=rev
Log:
[CMAKE]
Fix build of rossym
Modified:
trunk/reactos/CMakeLists.txt
trunk/reactos/include/reactos/rossym.h
Modified: trunk/reactos/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/CMakeLists.txt?rev=51791&a…
==============================================================================
--- trunk/reactos/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/CMakeLists.txt [iso-8859-1] Mon May 16 16:11:31 2011
@@ -37,7 +37,7 @@
include(config-arm.cmake)
endif()
-add_definitions(-D__REACTOS__)
+add_definitions(-D__REACTOS__ __ROS_CMAKE__)
if(NOT CMAKE_CROSSCOMPILING)
Modified: trunk/reactos/include/reactos/rossym.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/rossym.h?r…
==============================================================================
--- trunk/reactos/include/reactos/rossym.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/rossym.h [iso-8859-1] Mon May 16 16:11:31 2011
@@ -33,7 +33,17 @@
BOOLEAN (*SeekFileProc)(PVOID FileContext, ULONG_PTR Position);
} ROSSYM_CALLBACKS, *PROSSYM_CALLBACKS;
+#ifdef __ROS_CMAKE__
+typedef struct _ROSSYM_OWN_FILECONTEXT {
+ BOOLEAN (*ReadFileProc)(PVOID FileContext, PVOID Buffer, ULONG Size);
+ BOOLEAN (*SeekFileProc)(PVOID FileContext, ULONG_PTR Position);
+} ROSSYM_OWN_FILECONTEXT, *PROSSYM_OWN_FILECONTEXT;
+
+struct Dwarf;
+typedef struct Dwarf *PROSSYM_INFO;
+#else
typedef struct _ROSSYM_INFO *PROSSYM_INFO;
+#endif
VOID RosSymInit(PROSSYM_CALLBACKS Callbacks);
VOID RosSymInitKernelMode(VOID);