summaryrefslogtreecommitdiff
path: root/ext/ODBM_File
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-08-25 15:45:08 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-08-25 15:45:08 +0000
commit2b9198b74d2a4d85eb2f4f75689dee7f3e19e146 (patch)
tree61f19f5ebe9fe2432f0d263a6b32c3b30f105087 /ext/ODBM_File
parent20f4e2894de71066f1bcf3cb358fa8516d79a32d (diff)
downloadperl-2b9198b74d2a4d85eb2f4f75689dee7f3e19e146.tar.gz
Following Jarkko's advice, it seems that ODBM_File cannot be
compiled as C++ as-is. p4raw-id: //depot/perl@28757
Diffstat (limited to 'ext/ODBM_File')
-rw-r--r--ext/ODBM_File/ODBM_File.xs10
1 files changed, 1 insertions, 9 deletions
diff --git a/ext/ODBM_File/ODBM_File.xs b/ext/ODBM_File/ODBM_File.xs
index 3504ff64fd..2510d5e4f3 100644
--- a/ext/ODBM_File/ODBM_File.xs
+++ b/ext/ODBM_File/ODBM_File.xs
@@ -15,11 +15,7 @@ int dbminit(char* filename);
int dbmclose(void);
datum fetch(datum key);
int store(datum key, datum dat);
-# ifdef __cplusplus
-int odelete(datum key); /* Cannot be delete() for C++. */
-# else
int delete(datum key);
-# endif
datum firstkey(void);
datum nextkey(datum key);
#endif
@@ -57,11 +53,7 @@ typedef datum datum_value ;
#define odbm_FETCH(db,key) fetch(key)
#define odbm_STORE(db,key,value,flags) store(key,value)
-#ifdef __cplusplus
-# define odbm_DELETE(db,key) odelete(key)
-#else
-# define odbm_DELETE(db,key) delete(key)
-#endif
+#define odbm_DELETE(db,key) delete(key)
#define odbm_FIRSTKEY(db) firstkey()
#define odbm_NEXTKEY(db,key) nextkey(key)