Commit 97aa6ea4922deff9731a85a38891a1b5c4342085

Con Kolivas 2012-07-29T19:13:45

Fix build error without scrypt enabled.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/ocl.c b/ocl.c
index 5fe7b1b..e71b9cc 100644
--- a/ocl.c
+++ b/ocl.c
@@ -536,8 +536,10 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
 	if (clState->goffset)
 		strcat(binaryfilename, "g");
 	if (opt_scrypt) {
+#ifdef USE_SCRYPT
 		sprintf(numbuf, "lg%dtc%d", cgpu->lookup_gap, cgpu->thread_concurrency);
 		strcat(binaryfilename, numbuf);
+#endif
 	} else {
 		sprintf(numbuf, "v%d", clState->vwidth);
 		strcat(binaryfilename, numbuf);