X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cde%2Fprograms%2Fnsgmls%2FCodingSystem.C;h=b299164398454b60b7540c28ac341b91ad727b6a;hb=6478653e18940c8982db90d54befff9939bb188a;hp=6f9e520740d539afe9d9729431b2f4c17f6cec91;hpb=0ecef859cfacb5118ef489be5b09b2cde7a70195;p=oweals%2Fcde.git diff --git a/cde/programs/nsgmls/CodingSystem.C b/cde/programs/nsgmls/CodingSystem.C index 6f9e5207..b2991643 100644 --- a/cde/programs/nsgmls/CodingSystem.C +++ b/cde/programs/nsgmls/CodingSystem.C @@ -16,7 +16,7 @@ * details. * * You should have received a copy of the GNU Lesser General Public - * License along with these librararies and programs; if not, write + * License along with these libraries and programs; if not, write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301 USA */ @@ -33,7 +33,7 @@ #ifdef SP_SHORT_HEADERS #include #else -#if defined(linux) || defined(CSRG_BASED) +#if defined(__linux__) || defined(CSRG_BASED) || defined(sun) #include #else #include @@ -82,7 +82,7 @@ String OutputCodingSystem::convertOut(const StringC &str) const encoder->output(copy.data(), copy.size(), &stream); delete encoder; char *s = stream.str(); -#if defined(linux) || defined(CSRG_BASED) +#if defined(__linux__) || defined(CSRG_BASED) || defined(sun) String result(s, stream.pcount()); #else String result(s, stream.out_waiting());