+ /* Set the default file-translation mode */
+ _fmode = _O_BINARY;
+#endif
+}
+
+/*****************************************************************************
+ * system_Configure: check for system specific configuration options.
+ *****************************************************************************/
+void system_Configure( vlc_t *p_this )
+{
+#if !defined( UNDER_CE )
+ p_this->p_libvlc->b_fast_mutex = config_GetInt( p_this, "fast-mutex" );
+ p_this->p_libvlc->i_win9x_cv = config_GetInt( p_this, "win9x-cv-method" );
+
+ /* Raise default priority of the current process */
+#ifndef ABOVE_NORMAL_PRIORITY_CLASS
+# define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000
+#endif
+ if( !SetPriorityClass( GetCurrentProcess(),
+ ABOVE_NORMAL_PRIORITY_CLASS ) )
+ {
+ if( !SetPriorityClass( GetCurrentProcess(),
+ HIGH_PRIORITY_CLASS ) )
+ msg_Dbg( p_this, "can't raise process priority" );
+ else
+ msg_Dbg( p_this, "raised process priority" );
+ }
+ else
+ msg_Dbg( p_this, "raised process priority" );
+#endif