diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-01-03 22:54:29 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-01-03 22:54:29 +0000 |
| commit | acf6c881d36b675d755433d3cf48613bc46ed78d (patch) | |
| tree | 13cebc8f8fd918767595da12fafb5a600db2feb3 /FL/Fl.H | |
| parent | 933b00b9c9fe55d01a7f1c4831f171482806f85b (diff) | |
Updated platform specific #if's to report unimplemented code when compiling with FL_PORTING defined and WIN32 and __APPLE__ undefined>
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@10989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl.H')
| -rw-r--r-- | FL/Fl.H | 27 |
1 files changed, 24 insertions, 3 deletions
@@ -50,6 +50,11 @@ struct Fl_Label; # else # define FL_SOCKET int # endif +#elif defined(__APPLE__) +# define FL_SOCKET int +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: define a type for FL_SOCKET" +# define FL_SOCKET int // default if not ported #else # define FL_SOCKET int #endif @@ -158,6 +163,13 @@ public: // should be private! #ifdef __APPLE__ static void reset_marked_text(); // resets marked text static void insertion_point_location(int x, int y, int height); // sets window coordinates & height of insertion point +#elif defined(WIN32) + // not needed in WIN32 +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: define a type for FL_SOCKET" + // no default implementation +#else + // not needed in X11 #endif #endif // FL_DOXYGEN @@ -856,9 +868,18 @@ public: static void copy(const char* stuff, int len, int destination, const char *type); static void copy(const char* stuff, int len, int destination = 0); #endif - -#if !(defined(__APPLE__) || defined(WIN32) || defined(FL_DOXYGEN)) - static void copy_image(const unsigned char* data, int W, int H, int destination = 0); // platform dependent + +#if defined(__APPLE__) + // not needed +#elif defined(WIN32) + // not needed +#elif defined(FL_DOXYGEN) + // don't show in documentation +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: do you need to implement copy_image() ?" + // not implemented by default +#else + static void copy_image(const unsigned char* data, int W, int H, int destination = 0); // X11 platform dependent #endif /** Pastes the data from the selection buffer (\p source is 0) or the clipboard |
