update plists MACOSX_DEPLOYMENT_TARGET = 10.7.0
[wdl/wdl-ol.git] / WDL / swell / swell-misc-generic.cpp
blob42a3b230fdfa119121797f4fd4310cfb78b8d2a3
1 /* Cockos SWELL (Simple/Small Win32 Emulation Layer for Linux/OSX)
2 Copyright (C) 2006 and later, Cockos, Inc.
4 This software is provided 'as-is', without any express or implied
5 warranty. In no event will the authors be held liable for any damages
6 arising from the use of this software.
8 Permission is granted to anyone to use this software for any purpose,
9 including commercial applications, and to alter it and redistribute it
10 freely, subject to the following restrictions:
12 1. The origin of this software must not be misrepresented; you must not
13 claim that you wrote the original software. If you use this software
14 in a product, an acknowledgment in the product documentation would be
15 appreciated but is not required.
16 2. Altered source versions must be plainly marked as such, and must not be
17 misrepresented as being the original software.
18 3. This notice may not be removed or altered from any source distribution.
21 #ifndef SWELL_PROVIDED_BY_APP
23 #include "swell.h"
24 #include "swell-internal.h"
26 bool IsRightClickEmulateEnabled()
28 return false;
31 void SWELL_EnableRightClickEmulate(BOOL enable)
34 HANDLE SWELL_CreateProcess(const char *exe, int nparams, const char **params)
36 if (fork() == 0)
38 char **pp = (char **)calloc(nparams+2,sizeof(char*));
39 pp[0] = strdup(exe);
40 for (int x=0;x<nparams;x++) pp[x+1] = strdup(params[x]?params[x]:"");
41 execv(exe,pp);
42 exit(0);
45 return 0; // todo
49 #endif