summaryrefslogtreecommitdiff
path: root/src/fl_utf8.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-01-04 23:09:32 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-01-04 23:09:32 +0000
commitb1520373aebb3f16e1aad19d253c1ec12439664c (patch)
treefc48095864b484ab563a34f65040d00a8a3a9c54 /src/fl_utf8.cxx
parenteb1abad3ca43963f7826f067e70bc3a20db352da (diff)
Created pseudo code for all FL_PORTED section so that FLTK compiles and links (Xcode, hello, other C flags: -D FL_PORTING -U __APPLE__ -U __APPLE_QUARTZ__)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@10993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_utf8.cxx')
-rw-r--r--src/fl_utf8.cxx28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/fl_utf8.cxx b/src/fl_utf8.cxx
index e1375d84f..9ddc73dd0 100644
--- a/src/fl_utf8.cxx
+++ b/src/fl_utf8.cxx
@@ -62,6 +62,14 @@ extern "C" {
unsigned short XUtf8IsNonSpacing(unsigned int ucs);
}
+#elif defined(FL_PORTING)
+
+# pragma message "FL_PORTING: implement utf8 tools."
+extern "C" {
+ int XUtf8Tolower(int ucs);
+ unsigned short XUtf8IsNonSpacing(unsigned int ucs);
+}
+
#else // X-windows platform
# include "Xutf8.h"
@@ -623,6 +631,11 @@ int fl_chmod(const char* f, int mode) {
wbuf[wn] = 0;
return _wchmod(wbuf, mode);
+#elif defined(FL_PORTING)
+
+# pragma message "FL_PORTING: implement utf8 version of chmod."
+ return -1;
+
#else // other platforms
return chmod(f, mode);
@@ -653,6 +666,11 @@ int fl_access(const char* f, int mode) {
wbuf[wn] = 0;
return _waccess(wbuf, mode);
+#elif defined(FL_PORTING)
+
+# pragma message "FL_PORTING: implement utf8 version of access."
+ return -1;
+
#else // other platforms
return access(f, mode);
@@ -683,6 +701,11 @@ int fl_stat(const char* f, struct stat *b) {
wbuf[wn] = 0;
return _wstat(wbuf, (struct _stat*)b);
+#elif defined(FL_PORTING)
+
+# pragma message "FL_PORTING: implement utf8 version of stat."
+ return -1;
+
#else // other platforms
return stat(f, b);
@@ -782,6 +805,11 @@ int fl_mkdir(const char* f, int mode) {
wbuf[wn] = 0;
return _wmkdir(wbuf);
+#elif defined(FL_PORTING)
+
+# pragma message "FL_PORTING: implement utf8 version of mkdir."
+ return -1;
+
#else // other platforms
return mkdir(f, mode);