Author: pschweitzer
Date: Sat Feb 25 10:16:33 2017
New Revision: 73901
URL:
http://svn.reactos.org/svn/reactos?rev=73901&view=rev
Log:
[REISERFS]
When compiling the driver with GCC, define __GCC__.
Fix defines accordingly.
CORE-12826
Modified:
trunk/reactos/drivers/filesystems/reiserfs/CMakeLists.txt
trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_fs.h
trunk/reactos/drivers/filesystems/reiserfs/inc/reiserfs.h
Modified: trunk/reactos/drivers/filesystems/reiserfs/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
==============================================================================
--- trunk/reactos/drivers/filesystems/reiserfs/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/reiserfs/CMakeLists.txt [iso-8859-1] Sat Feb 25
10:16:33 2017
@@ -81,7 +81,7 @@
if(NOT MSVC)
add_target_compile_flags(reiserfs "-Wno-pointer-sign
-Wno-unused-function")
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
- add_target_compile_flags(reiserfs "-Wno-unused-but-set-variable
-Wno-unused-variable -Wno-missing-braces")
+ add_target_compile_flags(reiserfs "-Wno-unused-but-set-variable
-Wno-unused-variable -Wno-missing-braces -D__GCC__")
endif()
else()
#disable warnings: "unreferenced local variable", "initialized, but
not used variable", "benign include"
Modified: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_fs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
==============================================================================
--- trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_fs.h [iso-8859-1]
(original)
+++ trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_fs.h [iso-8859-1] Sat
Feb 25 10:16:33 2017
@@ -3,7 +3,11 @@
*/
#ifdef __GCC__
+#ifndef __REACTOS__
#define __PACKED __PACKED
+#else
+ #define __PACKED __attribute__((packed))
+#endif
#else
#define __PACKED
#endif
Modified: trunk/reactos/drivers/filesystems/reiserfs/inc/reiserfs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
==============================================================================
--- trunk/reactos/drivers/filesystems/reiserfs/inc/reiserfs.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/reiserfs/inc/reiserfs.h [iso-8859-1] Sat Feb 25
10:16:33 2017
@@ -4,7 +4,11 @@
#include <linux/types.h>
#ifdef __GCC__
+#ifndef __REACTOS__
#define __PACKED __PACKED
+#else
+ #define __PACKED __attribute__((packed))
+#endif
#else
#define __PACKED
#endif