diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-09-11 23:10:14 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-09-11 23:10:14 +0000 |
commit | 23f5d0fb5f51aeaa3e48cb09150a34529afd919b (patch) | |
tree | 91654b9dcfe6e789db3ce80cbee5ad00fb2bd834 /doc/README.developer | |
parent | f23f4ecf04d8b01ad4990dd2b15c675263590f7b (diff) | |
download | wireshark-23f5d0fb5f51aeaa3e48cb09150a34529afd919b.tar.gz |
Note that _WIN32, not WIN32, should be used in #ifdefs and #ifs testing
the platform for which we're building (and that both should be avoided
if possible, i.e. write your code so that it works on all platforms).
svn path=/trunk/; revision=11973
Diffstat (limited to 'doc/README.developer')
-rw-r--r-- | doc/README.developer | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/README.developer b/doc/README.developer index 1a39545fce..3968de7e00 100644 --- a/doc/README.developer +++ b/doc/README.developer @@ -265,6 +265,13 @@ GLib 2.x or GTK+ 2.x and the new name should be used, disregard that and use the old name - it'll still work with GLib 2.x or GTK+ 2.x, but will also work with GLib 1.2[.x] and GTK+ 1.2[.x]. +When different code must be used on UN*X and Win32, use a #if or #ifdef +that tests _WIN32, not WIN32. Try to write code portably whenever +possible, however; note that there are some routines in Ethereal with +platform-dependent implementations and platform-independent APIs, such +as the routines in epan/filesystem.c, allowing the code that calls it to +be written portably without #ifdefs. + 1.1.2 Robustness. Ethereal is not guaranteed to read only network traces that contain |