Skip to content

Commit

Permalink
Fix for non-opencl builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
magnumripper committed Jul 28, 2015
1 parent 9d97d04 commit c0560a4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/opencl_lm_b_plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Based on Solar Designer implementation of DES_bs_b.c in jtr-v1.7.9
*/

#if HAVE_OPENCL

#include "autoconfig.h"
#include "opencl_lm.h"

Expand Down Expand Up @@ -888,3 +890,4 @@ void opencl_lm_b_register_functions(struct fmt_main *fmt)
}

#endif /* #if CL_VERSION_1_2 && HAVE_OPENCL_1_2 */
#endif /* #if HAVE_OPENCL */
3 changes: 3 additions & 0 deletions src/opencl_lm_fmt_plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Based on Solar Designer implementation of DES_fmt.c in jtr-v1.7.9
*/

#if HAVE_OPENCL

#include "autoconfig.h"
#include "opencl_lm.h"

Expand Down Expand Up @@ -246,3 +248,4 @@ struct fmt_main fmt_opencl_lm = {
#endif /* plugin stanza */

#endif /* #if CL_VERSION_1_2 && HAVE_OPENCL_1_2 */
#endif /* #if HAVE_OPENCL */
3 changes: 3 additions & 0 deletions src/opencl_lm_plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Based on Solar Designer implementation of DES_bs_b.c in jtr-v1.7.9
*/

#if HAVE_OPENCL

#include "autoconfig.h"
#include "opencl_lm.h"

Expand Down Expand Up @@ -244,3 +246,4 @@ char *opencl_lm_get_source(WORD *raw)
}

#endif /* #if CL_VERSION_1_2 && HAVE_OPENCL_1_2 */
#endif /* #if HAVE_OPENCL */

0 comments on commit c0560a4

Please sign in to comment.