00001 #ifndef CLASSLIB_SYSAPI_PROCESS_INFO_H
00002 # define CLASSLIB_SYSAPI_PROCESS_INFO_H
00003
00004
00005
00006 # include "classlib/sysapi/system.h"
00007 # ifdef _WIN32
00008 # include <windows.h>
00009 # else
00010 # include <unistd.h>
00011 # if HAVE_CRT_EXTERNS_H // Mac OS X
00012 # include <crt_externs.h>
00013 # endif
00014 # if HAVE_MACH_O_DYLD_H // Mac OS X
00015 # include <mach-o/dyld.h>
00016 # endif
00017 # endif
00018
00019
00020
00021
00022
00023
00024 extern "C" {
00025 #if HAVE_SYM_ARGV // WIN32
00026 extern char **__argv;
00027 extern int __argc;
00028 #elif HAVE_SYM_DL_ARGV
00029 extern char **_dl_argv;
00030 #endif
00031 }
00032
00033
00034
00035
00036
00037
00038 #endif // CLASSLIB_SYSAPI_PROCESS_INFO_H