aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/bzip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/bzip.cpp')
-rw-r--r--doc/examples/bzip.cpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/doc/examples/bzip.cpp b/doc/examples/bzip.cpp
index 02252fb94..c3509c4da 100644
--- a/doc/examples/bzip.cpp
+++ b/doc/examples/bzip.cpp
@@ -1,10 +1,10 @@
/*
-An Botan example application which emulates a poorly written version of bzip2
-
-Written by Jack Lloyd ([email protected]), Jun 9, 2001
-
-This file is in the public domain
+* Bzip2 Compression/Decompression
+* (C) 2009 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
*/
+
#include <string>
#include <cstring>
#include <vector>
@@ -12,6 +12,14 @@ This file is in the public domain
#include <iostream>
#include <botan/botan.h>
+/*
+* If Bzip2 isn't included, we know nothing works at compile time, but
+* we wait to fail at runtime. Otherwise I would get 2-3 mails a month
+* about how this was failing to compile (even with an informative
+* #error message explaining the situation) because bzip2 wasn't
+* included in the build.
+*/
+
#if defined(BOTAN_HAS_COMPRESSOR_BZIP2)
#include <botan/bzip2.h>
#endif