]> www.ginac.de Git - cln.git/blobdiff - include/cln/string.h
Replace CL_REQUIRE/CL_PROVIDE(cl_I_ring) with portable code.
[cln.git] / include / cln / string.h
index c316f04e8a758d1d839c634365c447ada0285a8a..f7da4a2c7b9d03d6d85704e09fe7ad7c642c6f98 100644 (file)
@@ -124,10 +124,9 @@ inline cl_string::operator cl_heap_string* () const
 }
 inline cl_string::cl_string ()
 {
-       extern const cl_string cl_null_string;
-       pointer = (cl_heap_string*) cl_null_string;
+       static const cl_string cl_null_st(NULL, 0);
+       pointer = (cl_heap_string*) cl_null_st;
 }
-CL_REQUIRE(cl_st_null)
 
 // Hash code.
 extern unsigned long hashcode (const cl_string& str);