Author: tkreuzer
Date: Sat Feb 21 17:28:37 2015
New Revision: 66393
URL: http://svn.reactos.org/svn/reactos?rev=66393&view=rev
Log:
[WIN32K]
Fix release build
Modified:
trunk/reactos/win32ss/user/ntuser/win32kdebug.h
Modified: trunk/reactos/win32ss/user/ntuser/win32kdebug.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/win32k…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/win32kdebug.h [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/win32kdebug.h [iso-8859-1] Sat Feb 21 17:28:37 2015
@@ -6,7 +6,7 @@
This information includes which of the win32k debug channels will be
enabled for the current process and which level of a channel will be active.
This information will be stored in ppi->DbgChannelLevel.
- In this way user mode can control how win32k debugging will work when
+ In this way user mode can control how win32k debugging will work when
the following macros are used: ERR, FIXME, WARN, TRACE
By default only the ERR channel will be active. Remember that other
@@ -21,7 +21,7 @@
The operation to enable/disable (+/-) and the name of the channel is required
Channels are devided by commas
No spaces are allowed
- The syntax is case sensitive. Levels must be lowercase and
+ The syntax is case sensitive. Levels must be lowercase and
the names of the channels must be exactly like they are defined in DBG_DEFAULT_CHANNEL
This syntax can be mixed with wine debug channels without problems
@@ -118,7 +118,7 @@
DbgChUserWinpos,
DbgChCount
};
-
+
#define DISABLED_LEVEL 0x0
#define ERR_LEVEL 0x1
#define FIXME_LEVEL 0x2
@@ -157,34 +157,32 @@
#define STUB DbgPrint("WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__RELFILE__,__LINE__);
#else
- #define DBG_GET_PPI
+ #define DBG_GET_PPI
#define DBG_DEFAULT_CHANNEL(x)
#define DBG_ENABLE_CHANNEL(ppi,ch,level)
#define DBG_DISABLE_CHANNEL(ppi,ch,level)
#define DBG_IS_CHANNEL_ENABLED(ppi,ch,level)
- #define DBG_PRINT(ppi,ch,level)
+ #define DBG_PRINT(ppi,ch,level)
- #define ERR(fmt, ...)
- #define FIXME(fmt, ...)
- #define WARN(fmt, ...)
- #define TRACE(fmt, ...)
+ #define ERR(fmt, ...)
+ #define FIXME(fmt, ...)
+ #define WARN(fmt, ...)
+ #define TRACE(fmt, ...)
- #define ERR_CH(ch,fmt, ...)
+ #define ERR_CH(ch,fmt, ...)
#define FIXME_CH(ch,fmt, ...)
- #define WARN_CH(ch,fmt, ...)
+ #define WARN_CH(ch,fmt, ...)
#define TRACE_CH(ch,fmt, ...)
- #define ERR_PPI(ppi,ch,fmt, ...)
- #define FIXME_PPI(ppi,ch,fmt, ...)
- #define WARN_PPI(ppi,ch,fmt, ...)
- #define TRACE_PPI(ppi,ch,fmt, ...)
+ #define ERR_PPI(ppi,ch,fmt, ...)
+ #define FIXME_PPI(ppi,ch,fmt, ...)
+ #define WARN_PPI(ppi,ch,fmt, ...)
+ #define TRACE_PPI(ppi,ch,fmt, ...)
#define STUB
#endif
-#define KeRosDumpStackFrames(Frames, Count) KdSystemDebugControl('DsoR', (PVOID)Frames, Count, NULL, 0, NULL, KernelMode)
-
BOOL DbgInitDebugChannels();
Author: tfaber
Date: Sat Feb 21 17:18:38 2015
New Revision: 66391
URL: http://svn.reactos.org/svn/reactos?rev=66391&view=rev
Log:
[LIBJPEG]
- Restore the ros-diff lost in a sync. Fixes libjpeg.dll exports on MSVC builds.
CORE-9242 #resolve
Modified:
trunk/reactos/include/reactos/libs/libjpeg/jmorecfg.h
trunk/reactos/include/reactos/libs/libjpeg/rosdiff.patch
Modified: trunk/reactos/include/reactos/libs/libjpeg/jmorecfg.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/libs/libjp…
==============================================================================
--- trunk/reactos/include/reactos/libs/libjpeg/jmorecfg.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/libs/libjpeg/jmorecfg.h [iso-8859-1] Sat Feb 21 17:18:38 2015
@@ -238,14 +238,62 @@
* or code profilers that require it.
*/
+#ifdef _WIN32
+# if defined(ALL_STATIC)
+# if defined(JPEG_DLL)
+# undef JPEG_DLL
+# endif
+# if !defined(JPEG_STATIC)
+# define JPEG_STATIC
+# endif
+# endif
+# if defined(JPEG_DLL)
+# if defined(JPEG_STATIC)
+# undef JPEG_STATIC
+# endif
+# endif
+# if defined(JPEG_DLL)
+/* building a DLL */
+# define JPEG_IMPEXP __declspec(dllexport)
+# elif defined(JPEG_STATIC)
+/* building or linking to a static library */
+# define JPEG_IMPEXP
+# else
+/* linking to the DLL */
+# define JPEG_IMPEXP __declspec(dllimport)
+# endif
+# if !defined(JPEG_API)
+# define JPEG_API __cdecl
+# endif
+/* The only remaining magic that is necessary for cygwin */
+#elif defined(__CYGWIN__)
+# if !defined(JPEG_IMPEXP)
+# define JPEG_IMPEXP
+# endif
+# if !defined(JPEG_API)
+# define JPEG_API __cdecl
+# endif
+#endif
+
+/* Ensure our magic doesn't hurt other platforms */
+#if !defined(JPEG_IMPEXP)
+# define JPEG_IMPEXP
+#endif
+#if !defined(JPEG_API)
+# define JPEG_API
+#endif
+
/* a function called through method pointers: */
#define METHODDEF(type) static type
/* a function used only in its module: */
#define LOCAL(type) static type
/* a function referenced thru EXTERNs: */
-#define GLOBAL(type) type
+#define GLOBAL(type) type JPEG_API
/* a reference to a GLOBAL function: */
-#define EXTERN(type) extern type
+#ifndef EXTERN
+# define EXTERN(type) extern JPEG_IMPEXP type JPEG_API
+/* a reference to a "GLOBAL" function exported by sourcefiles of utility progs */
+#endif /* EXTERN */
/* This macro is used to declare a "method", that is, a function pointer.
Modified: trunk/reactos/include/reactos/libs/libjpeg/rosdiff.patch
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/libs/libjp…
==============================================================================
--- trunk/reactos/include/reactos/libs/libjpeg/rosdiff.patch [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/libs/libjpeg/rosdiff.patch [iso-8859-1] Sat Feb 21 17:18:38 2015
@@ -1,8 +1,8 @@
-Index: libs/libjpeg/jmorecfg.h
+Index: include/reactos/libs/libjpeg/jmorecfg.h
===================================================================
---- libs/libjpeg/jmorecfg.h (revision 48026)
-+++ libs/libjpeg/jmorecfg.h (working copy)
-@@ -191,14 +191,63 @@
+--- include/reactos/libs/libjpeg/jmorecfg.h (revision 66390)
++++ include/reactos/libs/libjpeg/jmorecfg.h (working copy)
+@@ -238,14 +238,62 @@
* or code profilers that require it.
*/
@@ -61,10 +61,9 @@
/* a reference to a GLOBAL function: */
-#define EXTERN(type) extern type
+#ifndef EXTERN
-+# define EXTERN(type) extern JPEG_IMPEXP type JPEG_API
++# define EXTERN(type) extern JPEG_IMPEXP type JPEG_API
+/* a reference to a "GLOBAL" function exported by sourcefiles of utility progs */
+#endif /* EXTERN */
-+#define EXTERN_1(type) extern type JPEG_API
/* This macro is used to declare a "method", that is, a function pointer.