Changeset 377 for trunk/icedtea-web/plugin/icedteanp/os2
- Timestamp:
- Jun 5, 2012, 9:51:10 AM (13 years ago)
- Location:
- trunk/icedtea-web/plugin/icedteanp/os2
- Files:
-
- 2 added
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/icedtea-web/plugin/icedteanp/os2/OS_OS2.cc
r357 r377 1 /* OS .cc1 /* OS_OS2.cc 2 2 3 3 Copyright (C) 2009, 2010 Red Hat … … 37 37 exception statement from your version. */ 38 38 39 #define INCL_DOS 40 #define INCL_PM 41 #include <os2.h> 42 39 43 #include <stdlib.h> 40 44 41 #include "OS.h" 42 43 #ifdef __OS2__ 45 #include "OS_OS2.h" 46 #include "OS_OS2_WinOS2.h" 44 47 45 48 const char *icedtea_web_data_dir() 46 49 { 47 const char *home = getenv("ICEDTEA_WEB_DATA");48 if (!home)49 home = ICEDTEA_WEB_DATA_DIR;50 return home;50 const char *home = getenv("ICEDTEA_WEB_DATA"); 51 if (!home) 52 home = ICEDTEA_WEB_DATA_DIR; 53 return home; 51 54 } 52 55 53 56 const char *icedtea_web_jre_dir() 54 57 { 55 const char *jre = getenv("ICEDTEA_WEB_JRE");56 if (!jre)57 jre = ICEDTEA_WEB_JRE_DIR;58 return jre;58 const char *jre = getenv("ICEDTEA_WEB_JRE"); 59 if (!jre) 60 jre = ICEDTEA_WEB_JRE_DIR; 61 return jre; 59 62 } 60 63 61 #endif // __OS2__ 64 bool init_os() 65 { 66 return init_os_winos2(); 67 } -
trunk/icedtea-web/plugin/icedteanp/os2/OS_OS2.h
r357 r377 1 /* OS .h1 /* OS_OS2.h 2 2 3 3 Copyright (C) 2009, 2010 Red Hat … … 37 37 exception statement from your version. */ 38 38 39 #ifndef __OS_ H__40 #define __OS_ H__39 #ifndef __OS_OS2_H__ 40 #define __OS_OS2_H__ 41 41 42 #ifdef __OS2__43 42 const char *icedtea_web_data_dir(); 44 43 const char *icedtea_web_jre_dir(); 45 #endif46 44 47 #endif // __OS_H__ 45 bool init_os(); 46 47 void *wrap_window_handle (void *handle); 48 49 #endif // __OS_OS2_H__
Note:
See TracChangeset
for help on using the changeset viewer.