All pastes #77954 Raw Edit

andrewt512

public text v1 · immutable
·published 2006-07-03 16:41 UTC
rendered paste body
Index: hasher.h
===================================================================
--- hasher.h    (revision 25)
+++ hasher.h    (working copy)
@@ -26,11 +26,18 @@
 #ifndef _HASHER_H
 #define _HASHER_H

+#ifdef __cplusplus
+   extern "C" {
+#endif
+
 void GenerateHash(short version_major,
                   const unsigned char *url, unsigned char hashSelect,
                   unsigned char *outhash,
                   int request_id);

+#ifdef __cplusplus
+   }
+#endif

 #endif /* _HASHER_H */

Index: Makefile.am
===================================================================
--- Makefile.am (revision 25)
+++ Makefile.am (working copy)
@@ -5,7 +5,7 @@

 libauthentication_la_SOURCES = contentfetcher.cpp md5.c hasher.c

-libauthentication_la_LDADD = \
+libauthentication_la_LIBADD = \
         $(LIB_QT) \
         $(LIB_KDECORE) \
         $(LIB_KDEUI)