Skip to content

Commit

Permalink
Define HMODULE for Unix to simply conditional code
Browse files Browse the repository at this point in the history
More simplification
  • Loading branch information
sebbASF committed Nov 4, 2023
1 parent 9d8912f commit 7bd5e62
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,7 @@ static int openssl_rand_bytes(unsigned char *buf, int num);
JNIEXPORT void JNICALL Java_org_apache_commons_crypto_random_OpenSslCryptoRandomNative_initSR (JNIEnv *env, jclass clazz)
{
char msg[1000];
#ifdef UNIX
void *openssl = open_library(env);
#endif

#ifdef WINDOWS
HMODULE openssl = open_library(env);
#endif

if (!openssl) {
#ifdef UNIX
Expand Down

0 comments on commit 7bd5e62

Please sign in to comment.