// $Id$
//
// Copyright (C) 2006
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
+// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
//#include "Exception.ih"
// Custom includes
-#include <cstring>
-#include <sstream>
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
prefix_ void senf::throwErrno(std::string const & where, int code)
{
+#ifndef SENF_NO_ERRNOEXC
switch (code) {
// BOOST_PP_REPEAT is limited to 256 repetitions. The max errno value I found in any header file
default:
throw SystemException(where, code);
}
+#else
+ throw SystemException(where, code);
+#endif
}
///////////////////////////////cc.e////////////////////////////////////////