some EMX fixes, thanks dave_yeo at paralynx
This commit is contained in:
parent
66feb6dd89
commit
44f7069e1c
2 changed files with 18 additions and 9 deletions
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: FbCommands.cc,v 1.24 2004/04/22 21:12:32 fluxgen Exp $
|
// $Id: FbCommands.cc,v 1.25 2004/07/19 13:52:15 fluxgen Exp $
|
||||||
|
|
||||||
#include "FbCommands.hh"
|
#include "FbCommands.hh"
|
||||||
#include "fluxbox.hh"
|
#include "fluxbox.hh"
|
||||||
|
@ -37,6 +37,15 @@
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif // HAVE_CONFIG_H
|
||||||
|
|
||||||
|
#if defined(__EMX__) && defined(HAVE_PROCESS_H)
|
||||||
|
#include <process.h> // for P_NOWAIT
|
||||||
|
#endif // __EMX__
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
namespace FbCommands {
|
namespace FbCommands {
|
||||||
|
@ -70,7 +79,7 @@ void ExecuteCmd::execute() {
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
#else // __EMX__
|
#else // __EMX__
|
||||||
spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", item->exec().c_str(), 0);
|
spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", m_cmd.c_str(), 0);
|
||||||
#endif // !__EMX__
|
#endif // !__EMX__
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -125,7 +134,7 @@ void ShowRootMenuCmd::execute() {
|
||||||
int wx, wy;
|
int wx, wy;
|
||||||
unsigned int mask;
|
unsigned int mask;
|
||||||
|
|
||||||
if ( XQueryPointer(FbTk::App::instance()->display(),
|
if (XQueryPointer(FbTk::App::instance()->display(),
|
||||||
screen->rootWindow().window(), &root_ret, &window_ret,
|
screen->rootWindow().window(), &root_ret, &window_ret,
|
||||||
&rx, &ry, &wx, &wy, &mask) ) {
|
&rx, &ry, &wx, &wy, &mask) ) {
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: I18n.hh,v 1.1 2004/06/07 11:46:05 rathnor Exp $
|
// $Id: I18n.hh,v 1.2 2004/07/19 13:53:46 fluxgen Exp $
|
||||||
|
|
||||||
#ifndef I18N_HH
|
#ifndef I18N_HH
|
||||||
#define I18N_HH
|
#define I18N_HH
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <nl_types.h>
|
#include <nl_types.h>
|
||||||
}
|
}
|
||||||
#elif defined(__CYGWIN__)
|
#elif defined(__CYGWIN__) || defined(__EMX__)
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif // __cplusplus
|
#endif // __cplusplus
|
||||||
|
|
Loading…
Reference in a new issue