/*!
	@file scolLinux.h
	@brief Linux specific options.
*/

// LICENCE

#ifndef __SCOL_LINUX_H__
#define __SCOL_LINUX_H__

// no direction needed as for msvc
#define _scol_Export

#ifdef DEBUG
#	define SCOL_DEBUG
#endif

// Include graphic interface layer.
#include <X11/Xlib.h>

// Define window handler type
typedef Window ScolWindowID;

// Linux dynamic library loading and unloading functions.
// see SPlugin class
#define SCOL_PLUGIN_INSTANCE void*
#define SCOL_PLUGIN_LOAD(a) dlopen(a,RTLD_LAZY)
#define SCOL_PLUGIN_UNLOAD(a) dlclose(a)
#define SCOL_PLUGIN_GET_SYMBOL(a,b) dlsym(a,b)
#define SCOL_PLUGIN_ERROR() dlerror()

#define SCOL_MAIN_FUNCTION int main(int argc, char **argv)
#define SCOL_ARGC argc
#define SCOL_ARGV argv

// MAX_PATH only defined on windows systems
#include <sys/param.h>
#define MAX_PATH MAXPATHLEN

// define the system type for window handle ("HWND" for MS Windows, "Window" for X11).
# define ScolWindowHandle Window

#endif

